edu.mit.jsemcor.term
Class POSTag

java.lang.Object
  extended by edu.mit.jsemcor.term.Terminal
      extended by edu.mit.jsemcor.term.POSTag
All Implemented Interfaces:
IElement, IPOSTag, ITerminal

public class POSTag
extends Terminal
implements IPOSTag

Default, concrete implementation of IPOSTag, with all pos tag types listed in the Semcor documentation. The reason this class is not implemented as an Enum is so that clients can instantiate their own instances of this class without re-implementing the interface.

Since:
JSemcor 1.0.0
Version:
1.59, 22 Sep 2008
Author:
M.A. Finlayson

Field Summary
static POSTag CC
           
static POSTag CD
           
static POSTag DT
           
static POSTag EX
           
static POSTag FW
           
static POSTag IN
           
static POSTag JJ
           
static POSTag JJR
           
static POSTag JJS
           
static POSTag LS
           
static POSTag MD
           
static POSTag NN
           
static POSTag NNP
           
static POSTag NNPS
           
static POSTag NNS
           
static POSTag NP
           
static POSTag NPS
           
static POSTag PDT
           
static POSTag POS
           
static POSTag PP
           
static POSTag PR
           
static POSTag PRP
           
static POSTag PRP$
           
static POSTag RB
           
static POSTag RBR
           
static POSTag RBS
           
static POSTag RP
           
static POSTag SYM
           
static POSTag TO
           
static POSTag UH
           
static POSTag VB
           
static POSTag VBD
           
static POSTag VBG
           
static POSTag VBN
           
static POSTag VBP
           
static POSTag VBZ
           
static POSTag WDT
           
static POSTag WP
           
static POSTag WP$
           
static POSTag WRB
           
 
Fields inherited from interface edu.mit.jsemcor.term.IPOSTag
ATTR_POS
 
Fields inherited from interface edu.mit.jsemcor.element.IElement
CLOSE_QUOTE, EQUALS, FORWARD_SLASH, LEFT_ANGLE_BRACKET, NEWLINE, OPEN_QUOTE, RIGHT_ANGLE_BRACKET, SPACE, SPACE_STR, UNDERSCORE, UNDERSCORE_STR
 
Constructor Summary
POSTag(String value, String meaning)
          Constructs a new object of type POSTag with the specified parameters.
 
Method Summary
static POSTag getInstance(String value)
          Returns the POSTag object for the specified name, or null if there is none.
 String getMeaning()
          A human-readable interpretation of what this part of speech represents.
static Collection<POSTag> values()
          This functions emulates the function of the same name found on each Enum class.
 
Methods inherited from class edu.mit.jsemcor.term.Terminal
getAttribute, getData, getValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.mit.jsemcor.term.ITerminal
getAttribute, getValue
 
Methods inherited from interface edu.mit.jsemcor.element.IElement
getData
 

Field Detail

CC

public static final POSTag CC

CD

public static final POSTag CD

DT

public static final POSTag DT

EX

public static final POSTag EX

FW

public static final POSTag FW

IN

public static final POSTag IN

JJ

public static final POSTag JJ

JJR

public static final POSTag JJR

JJS

public static final POSTag JJS

LS

public static final POSTag LS

MD

public static final POSTag MD

NN

public static final POSTag NN

NNP

public static final POSTag NNP

NNPS

public static final POSTag NNPS

NNS

public static final POSTag NNS

NP

public static final POSTag NP

NPS

public static final POSTag NPS

PDT

public static final POSTag PDT

POS

public static final POSTag POS

PP

public static final POSTag PP

PR

public static final POSTag PR

PRP

public static final POSTag PRP

PRP$

public static final POSTag PRP$

RB

public static final POSTag RB

RBR

public static final POSTag RBR

RBS

public static final POSTag RBS

RP

public static final POSTag RP

SYM

public static final POSTag SYM

TO

public static final POSTag TO

UH

public static final POSTag UH

VB

public static final POSTag VB

VBD

public static final POSTag VBD

VBG

public static final POSTag VBG

VBN

public static final POSTag VBN

VBP

public static final POSTag VBP

VBZ

public static final POSTag VBZ

WDT

public static final POSTag WDT

WP

public static final POSTag WP

WP$

public static final POSTag WP$

WRB

public static final POSTag WRB
Constructor Detail

POSTag

public POSTag(String value,
              String meaning)
Constructs a new object of type POSTag with the specified parameters.

Since:
JSemcor 1.0.0
Method Detail

getMeaning

public String getMeaning()
Description copied from interface: IPOSTag
A human-readable interpretation of what this part of speech represents.

Specified by:
getMeaning in interface IPOSTag

values

public static final Collection<POSTag> values()
This functions emulates the function of the same name found on each Enum class. This method returns a static, unmodifiable collection containing all the instances of this type that are declared in static fields in this concrete class.

Since:
JSemcor 1.0.0

getInstance

public static final POSTag getInstance(String value)
Returns the POSTag object for the specified name, or null if there is none.

Since:
JSemcor 1.0.0


Copyright © 2008-2011 Massachusetts Institute of Technology. All Rights Reserved.