public class CandidatePhrase extends Object implements Serializable, Comparable
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(String s,
double v) |
void |
addFeatures(Collection<String> feat) |
int |
compareTo(Object o) |
static List<CandidatePhrase> |
convertStringPhrases(Collection<String> str) |
static List<String> |
convertToString(Collection<CandidatePhrase> words) |
static CandidatePhrase |
createOrGet(String phrase) |
static CandidatePhrase |
createOrGet(String phrase,
String phraseLemma) |
static CandidatePhrase |
createOrGet(String phrase,
String phraseLemma,
Counter<String> features) |
static void |
deletePhrase(CandidatePhrase p) |
boolean |
equals(Object o) |
Counter<String> |
getFeatures() |
double |
getFeatureValue(String feat) |
String |
getPhrase() |
String |
getPhraseLemma() |
int |
hashCode() |
void |
setPhraseLemma(String phraseLemma) |
String |
toString() |
public static CandidatePhrase createOrGet(String phrase)
public static CandidatePhrase createOrGet(String phrase, String phraseLemma)
public static CandidatePhrase createOrGet(String phrase, String phraseLemma, Counter<String> features)
public String getPhrase()
public String getPhraseLemma()
public double getFeatureValue(String feat)
public int compareTo(Object o)
compareTo in interface Comparablepublic static List<CandidatePhrase> convertStringPhrases(Collection<String> str)
public static List<String> convertToString(Collection<CandidatePhrase> words)
public void addFeature(String s, double v)
public void addFeatures(Collection<String> feat)
public void setPhraseLemma(String phraseLemma)
public static void deletePhrase(CandidatePhrase p)