public class BIOFeatureExtractor extends Object
Constructor and Description |
---|
BIOFeatureExtractor() |
Modifier and Type | Method and Description |
---|---|
static List<Pair<Integer,String>> |
getBrownClusterPaths(Constituent c)
Get the brown-clusters representations of a given Constituent
This function checks one word before and two words after it.
|
static List<String> |
getBrownClusterPathsSingle(Constituent c)
Extracts brown-cluster representation.
|
static List<Pair<Integer,String>> |
getGazetteerFeatures(Constituent c)
Extracts the gazetteers feature for a given constituent
The size of the Constituent should be 1.
|
static List<Pair<String,String>> |
getGazetteerFeaturesHead(Relation r)
This functions works for the extent classifier.
|
static List<String> |
getGazetteerFeaturesSingle(Constituent c)
Extract the gazetteer feature of only the Constituent given.
|
static List<Pair<Integer,String>> |
getPOSFeatures(Constituent c)
Extracts Part-of-speech tagging features of a given Constituent
The size of the Constituent should be 1
|
static List<Pair<Integer,String>> |
getWordFormFeatures(Constituent c)
Get the form/lemma features of a given Constituent.
|
static String |
getWordNetHyms(WordNetManager wordnet,
Constituent c)
Extracts the hypernyms from wordNet of the given Constituent.
|
static String |
getWordNetTags(WordNetManager wordnet,
Constituent c)
Extracts the wordNet document names of the given Constituent.
|
static List<Pair<String,Boolean>> |
getWordTypeInformation(Constituent c)
This extracts the special form of a given Constituent (all digits...
|
static String |
isInPronounList(Constituent c)
Check if the the given Constituent is a pronoun that is defined in a pronoun list
Results show that if the list aligns with the definition of the corpus, it helps
The size of the Constituent should be 1
|
static String |
isSentenceStart(Constituent c)
Check if the Constituent is a start of a sentence
The size of the Constituent should be 1
|
public static List<Pair<Integer,String>> getGazetteerFeatures(Constituent c)
public static List<String> getGazetteerFeaturesSingle(Constituent c)
public static List<Pair<String,String>> getGazetteerFeaturesHead(Relation r)
public static String isSentenceStart(Constituent c)
public static List<Pair<Integer,String>> getWordFormFeatures(Constituent c)
public static List<Pair<Integer,String>> getPOSFeatures(Constituent c)
public static List<Pair<String,Boolean>> getWordTypeInformation(Constituent c)
public static List<Pair<Integer,String>> getBrownClusterPaths(Constituent c)
public static List<String> getBrownClusterPathsSingle(Constituent c)
public static String isInPronounList(Constituent c)
public static String getWordNetTags(WordNetManager wordnet, Constituent c)
public static String getWordNetHyms(WordNetManager wordnet, Constituent c)
Copyright © 2017. All rights reserved.