quetzalcoatil
New member
language? I wrote a Japanese to English translator for my Natural Language Processing course, but it relies on a hand built dictionary. I'd like to increase the functionality of the thing by either changing the term look-up to an SQL-like query, or by generating a more complete dictionary by parsing a huge database into a 'dictionary of dictionaries (of tuples)' in Python. The closest thing I can find is JMdict, which is in XML format, but it doesn't seem to include 'parts of speech' for words (ie looking up a word like ? just spits out that it means 'person' and has a set of examples. I need it's morphology, too. Like it's a 'noun - general case', but could also be used as a 'demonstrative pronoun' and instead be translated to something like '-er'. As in '???' which means 'adventurer', where the first characters mean 'adventure' and the last one turns into just 'r'.
I want to be able to get a dictionary in Python that allows me to do this:
englishWord = JapEngDict[u'?']['N']
resulting in 'person' being stored in englishWord. I need either a pre-built database type dictionary having part of speech labeling, or some other electronic format as long as I can automate the query process.
Thx
I want to be able to get a dictionary in Python that allows me to do this:
englishWord = JapEngDict[u'?']['N']
resulting in 'person' being stored in englishWord. I need either a pre-built database type dictionary having part of speech labeling, or some other electronic format as long as I can automate the query process.
Thx