LeeSureman / Batch_Parallel_LatticeLSTM

Chinese NER using Lattice LSTM. Reproduction for ACL 2018 paper.
129 stars 16 forks source link

RuntimeError: It seems like you are not running under a folder governed by fitlog. #1

Open w5688414 opened 5 years ago

w5688414 commented 5 years ago

when I run main file, I got an error: RuntimeError: It seems like you are not running under a folder governed by fitlog.

full error is: Batch_Parallel_LatticeLSTM git:(master) ✗ python main.py --dataset resume Reach the root or home. Can not find the config file. Traceback (most recent call last): File "main.py", line 52, in <module> fitlog.commit(__file__,fit_msg=fit_msg) File "/home/eric/anaconda3/lib/python3.7/site-packages/fitlog/__init__.py", line 65, in commit _logger.commit(file, fit_msg) File "/home/eric/anaconda3/lib/python3.7/site-packages/fitlog/fastlog/logger.py", line 27, in wrapper return func(*args, **kwargs) File "/home/eric/anaconda3/lib/python3.7/site-packages/fitlog/fastlog/logger.py", line 96, in commit raise RuntimeError("It seems like you are not running under a folder governed by fitlog.\n" + msg['msg']) RuntimeError: It seems like you are not running under a folder governed by fitlog. Error: Config file is not found

talisaMing commented 5 years ago

I have the same problem.How to fix it?

LeeSureman commented 5 years ago

sorry for late reply. You should manually init fitlog in your project dictionary,please refer to https://fitlog.readthedocs.io/zh/latest/
And if you want to run the main quickly, you can choice one of the following:

  1. run command 'fitlog init' in folder which has main.py (maybe after it, the original main.py will be coverd, just recover the main.py)
  2. run main_without_fitlog.py, I just uploaded it.

And, fitlog is a very nice tool for experiment result record, witch may be very helpful to you.

w5688414 commented 5 years ago

@LeeSureman the problem has been solved, thanks, but I met another problem: ModuleNotFoundError: No module named 'fastNLP.io.data_loader' my falst nlp version is 0.5.0, I don't know why

LeeSureman commented 5 years ago

@w5688414 maybe it' renamed by fastNLP.io.loader, and I have fixed it in code.

w5688414 commented 5 years ago

@LeeSureman thanks for your help, it works