|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.method.retrieve.NNretrieval.similarity.local.textual.TextualSimUtils
public class TextualSimUtils
Utilities to compute textual similarities
Nested Class Summary | |
---|---|
static class |
TextualSimUtils.WeightedString
Represents a string with an asssociated weight. |
Constructor Summary | |
---|---|
TextualSimUtils()
|
Method Summary | |
---|---|
static void |
expandTokensSet(java.util.Collection<Token> caseTokens,
java.util.Collection<Token> queryToken,
java.util.Set<TextualSimUtils.WeightedString> caseSet,
java.util.Set<TextualSimUtils.WeightedString> querySet)
Expands the tokens collections recived containing the tokens of a case and a query. |
static double |
getSize(java.util.Collection<TextualSimUtils.WeightedString> col)
Returns the "size" of a collection having into account that each WeightedString object has an associated weight. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextualSimUtils()
Method Detail |
---|
public static void expandTokensSet(java.util.Collection<Token> caseTokens, java.util.Collection<Token> queryToken, java.util.Set<TextualSimUtils.WeightedString> caseSet, java.util.Set<TextualSimUtils.WeightedString> querySet)
caseTokens
- Input tokens of the casequeryToken
- Input tokens of the querycaseSet
- Output set containing the tokens of the case represented in WeightedString objects that contain a string (the token) and a weightquerySet
- Output set containing the tokens of the query represented in WeightedString objects that contain a string (the token) and a weightpublic static double getSize(java.util.Collection<TextualSimUtils.WeightedString> col)
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |