de.tudarmstadt.ukp.jwktl.parser.de.components
Class DEEntryFactory
java.lang.Object
de.tudarmstadt.ukp.jwktl.parser.entry.EntryFactory
de.tudarmstadt.ukp.jwktl.parser.de.components.DEEntryFactory
public class DEEntryFactory
- extends EntryFactory
Extract POS and inflections.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
posMap
protected static final Map<String,PartOfSpeech> posMap
DEEntryFactory
public DEEntryFactory()
- Default constructor. Init embedded language factory and extend it to allow mapping between German name
and English language name. Two approaches of mapping is utilized. One is to load a mapping file located in lang/language_de.properties.
Another is based on the consideration that two languages should have the same language codes. So the two language code file langugage_code.en and language_code.de are used to
map two language names with identical code together.
findPartOfSpeech
public PartOfSpeech findPartOfSpeech(String name)
- Description copied from class:
EntryFactory
- Converts the given string into a part of speech enum type.
- Specified by:
findPartOfSpeech
in class EntryFactory
Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.