|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJet.HMM.Retagger
class Retagger provides methods for converting Penn part-of-speech tags into Jet part-of-speech tags, and using the result to filter the entries in the Jet lexicon.
Constructor Summary | |
Retagger()
|
Method Summary | |
static boolean |
compatible(java.lang.String word,
java.lang.String pennPOS,
Annotation jetDefn)
returns true if Penn part-of-speech tag 'pennPOS', as a tag for 'word', is compatible with Jet word definition 'jetDefn'. |
static java.lang.String |
jetToPtbPos(FeatureSet fs)
given a FeatureSet fs for a Jet lexical constituent (with a 'cat' feature and possibly other features), return a Penn POS consistent with 'fs'. |
static void |
pruneConstit(Document d,
Span zone)
prunes constit annotations using Penn tags (recorded as tagger annotations). |
static FeatureSet[] |
ptbToJetFS(java.lang.String word,
java.lang.String pennPOS)
given an annotation based on Penn tag set, returns an array (possibly empty) of corresponding Jet FeatureSets, with one entry for each possible Jet category and attributes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Retagger()
Method Detail |
public static FeatureSet[] ptbToJetFS(java.lang.String word, java.lang.String pennPOS)
public static java.lang.String jetToPtbPos(FeatureSet fs)
public static void pruneConstit(Document d, Span zone)
public static boolean compatible(java.lang.String word, java.lang.String pennPOS, Annotation jetDefn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |