public class JWIPOS
extends java.lang.Object
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 and Description |
---|
JWIPOS() |
Modifier and Type | Method and Description |
---|---|
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(java.lang.String tag)
Translates a pos tag into a JWI
POS object. |
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 translatedMWEPOS
object that is the equivalent ofjava.lang.NullPointerException
- if the specified part of speech is null
java.lang.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 translatedPOS
object that is the equivalent,
null
if the part of speech is unknown.java.lang.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 translatedPOS
object that is the equivalent,
null
if the part of speech is unknown.java.lang.NullPointerException
- if the specified part of speech is null
public static edu.mit.jwi.item.POS toPOS(java.lang.String tag)
POS
object.tag
- the part of speech tag to be translatedPOS
object that is the equivalent,
null
if the part of speech is unknown.java.lang.NullPointerException
- if the specified part of speech is null
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.