Hironsan / anago

Bidirectional LSTM-CRF and ELMo for Named-Entity Recognition, Part-of-Speech Tagging and so on.
https://anago.herokuapp.com/
MIT License
1.48k stars 371 forks source link

No module named 'seqeval.metrics' #68

Closed azuretime closed 6 years ago

azuretime commented 6 years ago

Hi

Thanks for sharing a great project. I faced an error which seems to be caused by an extra layer of 'seqeval' folder. Could you look into this issue?

Thank you!


System information

Describe the problem

When I run cd anago/ from anago.utils import load_data_and_labels

I get

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-25-9b9f11ce63de> in <module>()
----> 1 from anago.utils import load_data_and_labels

/content/anago/anago/__init__.py in <module>()
----> 1 from anago.tagger import Tagger
      2 from anago.trainer import Trainer
      3 from anago.wrapper import Sequence

/content/anago/anago/tagger.py in <module>()
      3 """
      4 import numpy as np
----> 5 from seqeval.metrics.sequence_labeling import get_entities
      6 
      7 

ModuleNotFoundError: No module named 'seqeval.metrics'
Hironsan commented 6 years ago

Hello @azuretime !

I think you clone the repository. In the case, you have to install seqeval package.

$ pip install seqeval

I will add seqeval to requirements.txt. Thank you for sharing the problem!