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

OSError: [Errno 2] for subprocess #4

Closed deter3 closed 8 years ago

deter3 commented 8 years ago

when try the samples in the help file with python 2.7 macbook air ,

from jNlp.jConvert import * input_sentence = u'気象庁が21日午前4時48分、発表した天気概況によると、' print ' '.join(tokenizedRomaji(input_sentence)) print tokenizedRomaji(input_sentence)

results was :

Traceback (most recent call last): File "", line 1, in File "build/bdist.macosx-10.11-intel/egg/jNlp/jConvert.py", line 42, in tokenizedRomaji File "build/bdist.macosx-10.11-intel/egg/jNlp/jTokenize.py", line 42, in jReads File "build/bdist.macosx-10.11-intel/egg/jNlp/jCabocha.py", line 24, in cabocha File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

kevincobain2000 commented 8 years ago

hi, sorry I haven't been paying attention to this repo lately.. But a few troubleshooting steps if I recall, you have cabocha and iconvert installed on ur mac right..?

kevincobain2000 commented 8 years ago

closing due to no response from the reporter

deter3 commented 8 years ago

I had the same problem "File "build/bdist.macosx-10.11-intel/egg/jNlp/jCabocha.py", line 24, in cabocha " , I installed cabocha on mac by "brew install cabocha" .

But error

Traceback (most recent call last): File "", line 1, in File "build/bdist.macosx-10.11-intel/egg/jNlp/jTokenize.py", line 30, in jTokenize File "", line 124, in XML cElementTree.ParseError: not well-formed (invalid token): line 1, column 4

I do not know what's iconvert , can you advise where I can installed ?(googled and can hardly find it )

kevincobain2000 commented 8 years ago

sorry it is called iconv

➜  ~ type iconv
iconv is /usr/bin/iconv