mirror of
https://github.com/modelscope/modelscope.git
synced 2026-09-01 19:49:03 +02:00
[to #42322933] remove fasttext from nlp requirements
This commit is contained in:
@@ -111,3 +111,12 @@ You can install it with pip on linux:
|
||||
On windows, please checkout the instructions on the
|
||||
installation page: https://github.com/facebookresearch/fairseq and follow the ones that match your environment.
|
||||
"""
|
||||
|
||||
# docstyle-ignore
|
||||
FASTTEXT_IMPORT_ERROR = """
|
||||
{0} requires the fasttext library but it was not found in your environment.
|
||||
You can install it with pip on linux or mac:
|
||||
`pip install fasttext`
|
||||
Or you can checkout the instructions on the
|
||||
installation page: https://github.com/facebookresearch/fastText and follow the ones that match your environment.
|
||||
"""
|
||||
|
||||
@@ -292,6 +292,7 @@ REQUIREMENTS_MAAPING = OrderedDict([
|
||||
('decord', (is_package_available('decord'), DECORD_IMPORT_ERROR)),
|
||||
('deepspeed', (is_package_available('deepspeed'), DEEPSPEED_IMPORT_ERROR)),
|
||||
('fairseq', (is_package_available('fairseq'), FAIRSEQ_IMPORT_ERROR)),
|
||||
('fasttext', (is_package_available('fasttext'), FASTTEXT_IMPORT_ERROR)),
|
||||
])
|
||||
|
||||
SYSTEM_PACKAGE = set(['os', 'sys', 'typing'])
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
en_core_web_sm>=2.3.5
|
||||
fasttext
|
||||
jieba>=0.42.1
|
||||
megatron_util
|
||||
pai-easynlp
|
||||
@@ -14,4 +13,4 @@ spacy>=2.3.5
|
||||
subword_nmt>=0.3.8
|
||||
text2sql_lgesql
|
||||
tokenizers
|
||||
transformers
|
||||
transformers>=4.12.0
|
||||
|
||||
Reference in New Issue
Block a user