Methods
| Modifier and Type |
Method and Description |
void |
applyPats(Counter<SurfacePattern> patterns,
String label,
boolean computeDataFreq,
TwoDimensionalCounter<Pair<String,String>,SurfacePattern> wordsandLemmaPatExtracted,
CollectionValuedMap<SurfacePattern,Triple<String,Integer,Integer>> matchedTokensByPat) |
Counter<String> |
chooseTopWords(Counter<String> newdt,
TwoDimensionalCounter<String,SurfacePattern> terms,
Counter<String> useThresholdNumPatternsForTheseWords,
Set<String> ignoreWords,
double thresholdWordExtract) |
Counter<String> |
learnNewPhrases(String label,
Map<String,Map<Integer,Triple<Set<SurfacePattern>,Set<SurfacePattern>,Set<SurfacePattern>>>> patternsForEachToken,
Counter<SurfacePattern> patternsLearnedThisIter,
Counter<SurfacePattern> allSelectedPatterns,
CollectionValuedMap<SurfacePattern,Triple<String,Integer,Integer>> tokensMatchedPatterns,
Counter<String> scoreForAllWordsThisIteration,
TwoDimensionalCounter<String,SurfacePattern> terms,
TwoDimensionalCounter<String,SurfacePattern> wordsPatExtracted,
Counter<SurfacePattern> currentAllPatternWeights,
TwoDimensionalCounter<SurfacePattern,String> patternsAndWords4Label,
TwoDimensionalCounter<SurfacePattern,String> allPatternsAndWords4Label,
String identifier,
Set<String> ignoreWords) |
static <E,F> void |
removeKeys(TwoDimensionalCounter<E,F> counter,
Collection<E> removeKeysCollection) |