instadeepai / tunbert

TunBERT is the first release of a pre-trained BERT model for the Tunisian dialect using a Tunisian Common-Crawl-based dataset. TunBERT was applied to three NLP downstream tasks: Sentiment Analysis (SA), Tunisian Dialect Identification (TDI) and Reading Comprehension Question-Answering (RCQA)
MIT License
107 stars 37 forks source link

ModuleNotFoundError: No module named 'nemo' #2

Open nourbouaziz98 opened 3 years ago

nourbouaziz98 commented 3 years ago

While running the command python models/bert-nvidia/bert_finetuning_SA_DC.py --config-name "sentiment_analysis_config" model.language_model.lm_checkpoint="/path/to/checkpoints/PretrainingBERTFromText--end.ckpt" model.train_ds.file_path="/path/to/train.tsv" model.validation_ds.file_path="/path/to/valid.tsv" model.test_ds.file_path="/path/to/test.tsv" to fine-tune TunBERT-PyTorch on the SA task, I had the following error image I tried to install NeMo several times, but the error still persists.

fourat-bs commented 3 years ago

@nourbouaziz98 try this: !pip install git+https://github.com/NVIDIA/NeMo.git

MalekBezzina commented 3 years ago

@nourbouaziz98 try this: !pip install git+https://github.com/NVIDIA/NeMo.git i tried following your instruction and I got this error:

D:\tunbert-main>pip install git+https://github.com/NVIDIA/NeMo.git Collecting git+https://github.com/NVIDIA/NeMo.git Cloning https://github.com/NVIDIA/NeMo.git to c:\users\delli3~1\appdata\local\temp\pip-umlhwszh-build Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 20, in File "C:\Users\DELLI3~1\AppData\Local\Temp\pip-umlhwszh-build\setup.py", line 106 f'--use-parentheses --line-width={__LINE_WIDTH} -rc -ws' ^ SyntaxError: invalid syntax

nourbouaziz98 commented 3 years ago

@fourat-bs

@nourbouaziz98 try this: !pip install git+https://github.com/NVIDIA/NeMo.git

Thank you for the suggestion, but it's still not working. It shows the same error

AltafAllahAbbassi commented 3 years ago

Same here , any solution ?

AaronCWacker commented 1 year ago

Mine was missing Cython after fresh install running python 3.10... Fixed with pip install Cython. Then missing Microsoft Visual C++ 14.0. Fixed with reinstall of Microsoft Visual C++ 14.0 from runtime install page for PC: https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170 and build tools here: https://visualstudio.microsoft.com/visual-cpp-build-tools/ Then pesq fails. Still working on it.

RezuwanHassan262 commented 1 year ago

It worked for me, thanks!

Firashs01 commented 11 months ago

If anyone can provide me with an example of working with TunnBERT, I have a project and I'm currently facing a roadblock. Thank you in advance

fourat-bs commented 11 months ago

@Firashs01 that's my notebook that I've used back in 2021, it clones my fork of Tunbert and uses fixed versions of the libraries beneath.

Firashs01 commented 11 months ago

@fourat-bs ok thanks so much