Back

Mighty Morphin Morphology

#32
Splatted Wrote:I keep getting this error message whenever I try to create a db; do you ahave any idea what's wrong? At least the second to last line gave me some lolz.
Anki Wrote:Traceback (most recent call last):
File "C:\Documents and Settings\Oscar\Application Data\.anki\plugins\morph\util.py", line 63, in
ed.connect( a, SIGNAL('triggered()'), lambda e=ed: doOnSelection( e, overviewMsg, progMsg, preF, perF, postF ) )
File "C:\Documents and Settings\Oscar\Application Data\.anki\plugins\morph\util.py", line 37, in doOnSelection
st = preF( ed )
File "C:\Documents and Settings\Oscar\Application Data\.anki\plugins\morph\exportMorphemes.py", line 13, in pre
return { 'ed':ed, 'srcName':name, 'filePath':path, 'ms':[], 'mp':m.mecab(None) }
File "C:\Documents and Settings\Oscar\Application Data\.anki\plugins\morph\morphemes.py", line 18, in mecab
return subprocess.Popen( mecabCmd, bufsize=-1, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, startupinfo=si )
File "C:\cygwin\home\dae\Home\anki\win\build\pyi.win32\anki\outPYZ1.pyz/subprocess", line 672, in __init__
File "C:\cygwin\home\dae\Home\anki\win\build\pyi.win32\anki\outPYZ1.pyz/subprocess", line 882, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified
It's failing to run mecab.
Do you have the Japanese plugin installed and can you generate readings?
Where is mecab's exe located on your system?
What operating system are you using?

Splatted Wrote:
overture2112 Wrote:The databases actually contain frequency information. The format is basically a TSV file with 4 column morpheme entry plus a number with how many times it was seen. I'll consider adding some frequency filter to MorphMan to make use of it.
I don't think there's any need for anything complicated here. Just sorting a batch of the most common words (e.g. the 1000 most common, or all the words that appear 3 or more times etc) and then sorting that in to the easiest to learn order would make huge difference.
If you want to try this now, open up the DB in a spreadsheet program or something (since it's just a tsv), use that to sort the rows by the frequency column, delete stuff that doesn't appear enough, then save it (perhaps to a new file) and use that.
Reply

Messages In This Thread