Joined: Oct 2005
Posts: 127
Thanks:
0
There is a utf-8 version of the dictionary that mecab uses which will causes errors when using your plugin. A user with that version needs to edit the source code to make the plugin work.
It is not something you need to fix (the official plugin for Japanese support have the same issue), but it might be good to know.
A simple fix:
Open morphemes.py and replace all occurrences of 'euc-jp' with 'utf-8'.
Edit: I confused mecab with the dictionary it uses.
Edited: 2011-05-15, 4:21 am
Joined: Oct 2010
Posts: 866
Thanks:
6
This Plugin sounds great! thanks alot! I do think though that deciding which word to learn next should be a trade off between the value of the word and ease of learning. You said that it's possible to give priority to certain decks, but would it be possible to give words a rating based on how many times they appear? If possible it would be nice to be able to exclude decks from this as well, since it's obviously not relevant how many times a word appears in something like Core 6000. It might also be useful to give more significance to words that appear in multiple decks, as they are likely to be more useful for other things as well.
P.S. I was planning on making a Fate/Stay night deck too; where did you downlad it all from?
Edited: 2011-05-14, 3:37 pm
Joined: Jul 2010
Posts: 122
Thanks:
0
netsplitter: following up on my last post, what am trying to say is 'close enough is good enough'. If it helps to improve the accuracy, then that is what we need.
Joined: Jan 2010
Posts: 1,708
Thanks:
13
See edit.
Traceback (most recent call last):
File "C:\Users\vix\AppData\Roaming\.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:\Users\vix\AppData\Roaming\.anki\plugins\morph\util.py", line 54, in doOnSelection
postF( st )
File "C:\Users\vix\AppData\Roaming\.anki\plugins\morph\exportMorphemes.py", line 24, in post
m.mergeFiles( st['filePath'], util.knownDbPath, util.knownDbPath )
File "C:\Users\vix\AppData\Roaming\.anki\plugins\morph\morphemes.py", line 120, in mergeFiles
a, b = loadDb( aPath ), loadDb( bPath )
File "C:\Users\vix\AppData\Roaming\.anki\plugins\morph\morphemes.py", line 60, in loadDbU
buf = open( path, 'rb' ).read().decode('utf-8')
IOError: [Errno 2] No such file or directory: 'C:\\Users\\vix\\AppData\\Roaming\\.anki\\plugins\\morph\\dbs\\known.db'
Edit: Not Python's fault. There just simply isn't a 'known.db' file there.
Edited: 2011-05-26, 9:06 pm
Joined: Oct 2007
Posts: 4,582
Thanks:
0
Okay, so I've started playing with this. It's amazing! Just updated, haven't tested out the morpheme to expression matching, but I'm sure it'll be very useful, as you noted, re: subs2srs + vocabulary.
Have you already talked about vocab card creation somewhere in the matching process? Like when it determines unknown morphemes based on cards' expressions, it'll create cards for them, that sort of thing? Perhaps integrated with the glossing function? Guess I should read through your comments on this plugin.
Thanks for creating it. It's always lovely when someone brilliant and innovative appears to give us free tools that are revolutionizing language self-study, which is what I think happens on a strikingly regular basis here at RevTK.
Edited: 2011-05-26, 9:28 pm