Package org.nlpub.watset.util
Class CosineContextSimilarity<V>
- java.lang.Object
-
- org.nlpub.watset.util.CosineContextSimilarity<V>
-
- All Implemented Interfaces:
BiFunction<Map<V,Number>,Map<V,Number>,Number>,ContextSimilarity<V>
public class CosineContextSimilarity<V> extends Object implements ContextSimilarity<V>
The classical cosine similarity measure for bags-of-words.- See Also:
- Queries as vectors
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.nlpub.watset.util.ContextSimilarity
ContextSimilarity.DummyContextSimilarity<V>
-
-
Constructor Summary
Constructors Constructor Description CosineContextSimilarity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Numberapply(Map<V,Number> bag1, Map<V,Number> bag2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-