|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.constant.POSLocal
public class POSLocal
Names of parts of speech in some language (e.g. Russian) and the links to the POS.java codes.
Field Summary | |
---|---|
protected String |
name
POS name, e.g. |
protected static Map<String,POS> |
name2pos
|
protected POS |
pos
POS corresponding to this name, e.g. |
protected static Map<POS,String> |
pos2name
|
protected static Map<POS,String> |
pos2name_short
|
protected String |
short_name
Short POS name, e.g. |
Constructor Summary | |
---|---|
protected |
POSLocal(String _name,
String _short_name,
POS _pos)
Remark: run the RelationTableAll.main() in order to check duplicates of part of speech names and short names. |
Method Summary | |
---|---|
static POS |
get(String name)
Gets POS by its name in some language |
static String |
getName(POS p)
Gets name of POS in Russian. |
static String |
getShortName(POS p)
Gets short name of POS in some language (e.g. |
static boolean |
has(POS p)
Checks weather exists the translation for this POS. |
static boolean |
hasName(String name)
Checks weather exists POS by its name in Russian language. |
static int |
size()
Counts number of translations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected String short_name
protected POS pos
protected static final Map<String,POS> name2pos
protected static final Map<POS,String> pos2name
protected static final Map<POS,String> pos2name_short
Constructor Detail |
---|
protected POSLocal(String _name, String _short_name, POS _pos)
Method Detail |
---|
public static boolean hasName(String name)
public static boolean has(POS p)
public static POS get(String name)
public static String getName(POS p)
public static String getShortName(POS p)
public static int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |