public class POSUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Set<String> |
closedSetPOS |
Constructor and Description |
---|
POSUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getCoarsePOS(String pos)
Converts the input part of speech tag into a coarse set, consisting of
the labels Noun, Verb, Adjective, Adverb, Punctuation, Pronoun and Other
|
static boolean |
isNominalization(String token,
String pos,
NomLexReader nomLex) |
static boolean |
isNominalization(String token,
String pos,
NomLexReader nomLex,
Set<NomLexEntry.NomLexClasses> classes) |
static boolean |
isPOSAdjective(String token) |
static boolean |
isPOSAdverb(String token) |
static boolean |
isPOSClosedSet(String token) |
static boolean |
isPOSNoun(String token) |
static boolean |
isPOSNumber(String token) |
static boolean |
isPOSOpenSet(String token) |
static boolean |
isPOSPossessive(String label) |
static boolean |
isPOSPossessivePronoun(String token) |
static boolean |
isPOSPreposition(String token) |
static boolean |
isPOSPronoun(String token) |
static boolean |
isPOSPunctuation(String label) |
static boolean |
isPOSTag(String token)
Very simple way of testing whether something is a part of speech tag.
|
static boolean |
isPOSVerb(String token) |
public static boolean isPOSTag(String token)
public static String getCoarsePOS(String pos)
pos
- public static boolean isPOSOpenSet(String token)
public static boolean isPOSClosedSet(String token)
public static boolean isPOSNumber(String token)
public static boolean isPOSPunctuation(String label)
label
- public static boolean isPOSPossessive(String label)
public static boolean isPOSAdjective(String token)
public static boolean isPOSNoun(String token)
public static boolean isPOSPronoun(String token)
public static boolean isPOSPossessivePronoun(String token)
public static boolean isPOSAdverb(String token)
public static boolean isPOSPreposition(String token)
public static boolean isPOSVerb(String token)
public static boolean isNominalization(String token, String pos, NomLexReader nomLex)
public static boolean isNominalization(String token, String pos, NomLexReader nomLex, Set<NomLexEntry.NomLexClasses> classes)
Copyright © 2015. All rights reserved.