NLP-CISUC / NLPyPort

MIT License
23 stars 15 forks source link

ERROR: 'RegexpTagger' object has no attribute '_regexps' in Tagger.py #7

Open zonatto-wuzu-zz opened 4 years ago

zonatto-wuzu-zz commented 4 years ago

@jdportugal I tried to run the project as it is and I am finding this error in the module Tagger.py in the bold line below.

Do you have any idea of what is happening here?

def nlpyport_pos(token,config_file): model_path = "" model_path = load_tag_configurations(config_file) tagger = load_tagger(model_path) tags = [tagger.tag(token)]

I am using windows / Python 3.8

jdportugal commented 4 years ago

Hi, From what I've tested it seems to be a problem with the NLTK version, changing the version to nltk==3.4.5 seem to solve the issue!

Let me know if it worked for you

guizonatto commented 4 years ago

Yup!

Totally corrected!

This error was found in nltk in 2012. Maybe, it is back.

On Wed, Jun 3, 2020 at 4:12 AM jdportugal notifications@github.com wrote:

Hi, From what I've tested it seems to be a problem with the NLTK version, changing the version to nltk==3.4.5 seem to solve the issue!

Let me know if it worked for you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jdportugal/NLPyPort/issues/7#issuecomment-638004671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7KQM7T3LCYXCZZ7JJLH5TRUXZXTANCNFSM4NRDGCVQ .