Skip to content
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

Installation and running problems #1

Open
jtsoftware opened this issue Dec 10, 2023 · 2 comments
Open

Installation and running problems #1

jtsoftware opened this issue Dec 10, 2023 · 2 comments

Comments

@jtsoftware
Copy link

Installation gives an error:

C:\tst\mm-Word-Seg>pip install -r python-crfsuite
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'python-crfsuite'

But still seemed to be installed:

pip install python-crfsuite
Requirement already satisfied: python-crfsuite in c:\users\johnt\appdata\local\programs\python\python310\lib\site-packages (0.9.9)

Running gives error:

C:\tst\mm-Word-Seg>python ./seg.py -i input.txt -o output.txt
Traceback (most recent call last):
File "C:\tst\mm-Word-Seg\seg.py", line 19, in
tagger.open('./mm-word-300.crfsuite')
File "pycrfsuite/_pycrfsuite.pyx", line 571, in pycrfsuite._pycrfsuite.Tagger.open
File "pycrfsuite/_pycrfsuite.pyx", line 733, in pycrfsuite._pycrfsuite.Tagger._check_model
FileNotFoundError: [Errno 2] No such file or directory: './mm-word-300.crfsuite'

Copying model\mm-word-segmentation-300.crfsuite to .\mm-word-300.crfsuite got rid of the error, but the output is not segmented.

Input:

ເຈົ້າມັກເຮັດຫຍັງເວລາຫວ່າງ?
ເຈົ້າເຮັດຫຍັງເວລາຫວ່າງ?
ໃນເວລາຫວ່າງຂ້ອຍມັກຟັງເພງ
ເຈົ້າມັກເຮັດຫຍັງ?

Output:

ເຈົ້າມັກເຮັດຫຍັງເວລາຫວ່າງ?
ເຈົ້າເຮັດຫຍັງເວລາຫວ່າງ?
ໃນເວລາຫວ່າງຂ້ອຍມັກຟັງເພງ
ເຈົ້າມັກເຮັດຫຍັງ?

@ThuraAung1601
Copy link
Owner

ThuraAung1601 commented Dec 11, 2023 via email

@jtsoftware
Copy link
Author

So sorry. I got confused about languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants