public class POSUtils extends Object
Modifier and Type | Field and Description |
---|---|
static List<String> |
allPOS |
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 String |
getPOS(TextAnnotation ta,
int tokenId) |
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)
public static boolean isPOSOpenSet(String token)
public static boolean isPOSClosedSet(String token)
public static boolean isPOSNumber(String token)
public static boolean isPOSPunctuation(String 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 String getPOS(TextAnnotation ta, int tokenId)
Copyright © 2017. All rights reserved.