de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.constant
Class POSLocal

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.constant.POSLocal
Direct Known Subclasses:
POSEn, POSRu

public class POSLocal
extends Object

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

name

protected String name
POS name, e.g. "noun"


short_name

protected String short_name
Short POS name, e.g. "n." for noun


pos

protected POS pos
POS corresponding to this name, e.g. POS.noun


name2pos

protected static final Map<String,POS> name2pos

pos2name

protected static final Map<POS,String> pos2name

pos2name_short

protected static final Map<POS,String> pos2name_short
Constructor Detail

POSLocal

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 Detail

hasName

public static boolean hasName(String name)
Checks weather exists POS by its name in Russian language.


has

public static boolean has(POS p)
Checks weather exists the translation for this POS.


get

public static POS get(String name)
Gets POS by its name in some language


getName

public static String getName(POS p)
Gets name of POS in Russian.


getShortName

public static String getShortName(POS p)
Gets short name of POS in some language (e.g. Russian).


size

public static int size()
Counts number of translations.



Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.