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

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

Open
jiterika opened this issue Feb 12, 2019 · 4 comments

Comments

@jiterika
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

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