|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jmwe.util.JWIPOS
public class JWIPOS
Utility class used to translate part of speech tags into JWI POS
objects as well as translate between jMWE, JWI and jSemcor part of speech
objects.
This class requires the JWI and JSemcor libraries to be on the classpath.
Constructor Summary | |
---|---|
JWIPOS()
|
Method Summary | |
---|---|
static MWEPOS |
toMWEPOS(edu.mit.jwi.item.POS pos)
Translates a JWI POS object into a jMWE MWEPOS object. |
static edu.mit.jwi.item.POS |
toPOS(edu.mit.jsemcor.term.IPOSTag tag)
Translates a JSemcor IPOSTag object into a JWI POS
object. |
static edu.mit.jwi.item.POS |
toPOS(MWEPOS pos)
Translates a jMWE MWEPOS object into a JWI POS object. |
static edu.mit.jwi.item.POS |
toPOS(String tag)
Translates a pos tag into a JWI POS object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JWIPOS()
Method Detail |
---|
public static MWEPOS toMWEPOS(edu.mit.jwi.item.POS pos)
POS
object into a jMWE MWEPOS
object.
pos
- the JWI part of speech to be translated
MWEPOS
object that is the equivalent of
NullPointerException
- if the specified part of speech is null
IllegalArgumentException
- if the specified part of speech is unknownpublic static edu.mit.jwi.item.POS toPOS(MWEPOS pos)
MWEPOS
object into a JWI POS
object.
pos
- the jMWE part of speech to be translated
POS
object that is the equivalent,
null
if the part of speech is unknown.
NullPointerException
- if the specified part of speech is null
public static edu.mit.jwi.item.POS toPOS(edu.mit.jsemcor.term.IPOSTag tag)
IPOSTag
object into a JWI POS
object.
tag
- the jSemcor part of speech tag to be translated
POS
object that is the equivalent,
null
if the part of speech is unknown.
NullPointerException
- if the specified part of speech is null
public static edu.mit.jwi.item.POS toPOS(String tag)
POS
object.
tag
- the part of speech tag to be translated
POS
object that is the equivalent,
null
if the part of speech is unknown.
NullPointerException
- if the specified part of speech is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |