-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DiaParser destroys Icelandic tokenizer #1
Comments
Sorry about that.
During installation pip should have shown the packages that it needed to upgrade. |
OK, first we install Icelandic Tokenizer with the dependencies above: $ pip3 install -U torch transformers stanza pytest nltk tokenizer Then we can use $ echo "3.janúar sl. keypti ég 64kWst rafbíl. Hann kostaði € 30.000." | tokenize
3. janúar sl. keypti ég 64kWst rafbíl .
Hann kostaði €30.000 . Second we install $ pip3 install -U diaparser After that, Icelandic Tokenizer is destroyed: $ echo "3.janúar sl. keypti ég 64kWst rafbíl. Hann kostaði € 30.000." | tokenize
Traceback (most recent call last):
File "/home/yasuoka/.local/bin/tokenize", line 5, in <module>
from tokenizer.main import main
File "/home/yasuoka/.local/lib/python3.7/site-packages/tokenizer/main.py", line 49, in <module>
from .tokenizer import TOK, tokenize
ImportError: cannot import name 'TOK' from 'tokenizer.tokenizer' (/home/yasuoka/.local/lib/python3.7/site-packages/tokenizer/tokenizer.py)
|
If you reinstall
which requires version 0.9.4 instead of the latest.
|
Umm...
|
I've tried to install
DiaParser
viapip install diaparser
, and it destroyed Icelandic tokenizer. I'm vague why they conflicted in installing...The text was updated successfully, but these errors were encountered: