kevincobain2000 / jProcessing

Japanese Natural Langauge Processing Libraries
http://readthedocs.org/docs/jprocessing/en/latest/
BSD 2-Clause "Simplified" License
148 stars 30 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'cabocha': 'cabocha' while using jTokenize #17

Open jiterika opened 5 years ago

jiterika commented 5 years ago

Hi All, I tried installing the package on Python3 environment. I have got errors pointing to 'print' statements and other syntax errors which are different in python3 . I made those changes and installed successfully. Now when i try to use jTokenize as shown in the example. i run into following error.

FileNotFoundError: [Errno 2] No such file or directory: 'cabocha': 'cabocha'

The code snippet i tried input_sentence = u'私は彼を5日前、つまりこの前の金曜日に駅で見かけた' list_of_tokens = jTokenize(input_sentence)

It would be helpful if anyone can help me fix it.

Thank You in advance

kevincobain2000 commented 5 years ago

Hi, thank you for making changes to print statements for python3

I have got errors pointing to 'print' statements and other syntax errors which are different in python3 .

15 If possible, would you be able to submit a pull request with your changes?

Let me see if the same issue occur on python 2.7

jiterika commented 5 years ago

Hi Kevin,

Sure, i will do that mean while, can you help me with the following error

FileNotFoundError: [Errno 2] No such file or directory: 'cabocha': 'cabocha'

The code snippet i tried input_sentence = u'私は彼を5日前、つまりこの前の金曜日に駅で見かけた' list_of_tokens = jTokenize(input_sentence)

Thank You

kevincobain2000 commented 5 years ago

I think the following path is showing up error. Perhaps you can try to change the following path to a path where you have permissions on your machine.

https://github.com/kevincobain2000/jProcessing/blob/master/src/jNlp/jCabocha.py#L15-L19

jiterika commented 5 years ago

Hi, Thank you. Let me try that. I messed up code trying to fix the error. Let me revert the changes and i will submit a pull request.

Thank You