| Constructor and Description |
|---|
ScorePhrases(Properties props,
ConstantsAndVariables cv) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyPats(Counter<E> patterns,
String label,
TwoDimensionalCounter<Pair<String,String>,E> wordsandLemmaPatExtracted,
CollectionValuedMap<E,Triple<String,Integer,Integer>> matchedTokensByPat) |
Counter<String> |
chooseTopWords(Counter<String> newdt,
TwoDimensionalCounter<String,E> terms,
Counter<String> useThresholdNumPatternsForTheseWords,
Set<String> ignoreWords,
double thresholdWordExtract) |
protected Map<E,Map<String,List<CoreLabel>>> |
getSentences(Map<E,Set<String>> sentids) |
Counter<String> |
learnNewPhrases(String label,
PatternsForEachToken patternsForEachToken,
Counter<E> patternsLearnedThisIter,
Counter<E> allSelectedPatterns,
CollectionValuedMap<E,Triple<String,Integer,Integer>> tokensMatchedPatterns,
Counter<String> scoreForAllWordsThisIteration,
TwoDimensionalCounter<String,E> terms,
TwoDimensionalCounter<String,E> wordsPatExtracted,
TwoDimensionalCounter<E,String> patternsAndWords4Label,
String identifier,
Set<String> ignoreWords) |
static <E,F> void |
removeKeys(TwoDimensionalCounter<E,F> counter,
Collection<E> removeKeysCollection) |
public ScorePhrases(Properties props, ConstantsAndVariables cv)
public Counter<String> chooseTopWords(Counter<String> newdt, TwoDimensionalCounter<String,E> terms, Counter<String> useThresholdNumPatternsForTheseWords, Set<String> ignoreWords, double thresholdWordExtract)
public static <E,F> void removeKeys(TwoDimensionalCounter<E,F> counter, Collection<E> removeKeysCollection)
public Counter<String> learnNewPhrases(String label, PatternsForEachToken patternsForEachToken, Counter<E> patternsLearnedThisIter, Counter<E> allSelectedPatterns, CollectionValuedMap<E,Triple<String,Integer,Integer>> tokensMatchedPatterns, Counter<String> scoreForAllWordsThisIteration, TwoDimensionalCounter<String,E> terms, TwoDimensionalCounter<String,E> wordsPatExtracted, TwoDimensionalCounter<E,String> patternsAndWords4Label, String identifier, Set<String> ignoreWords) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundException