Package org.nlpub.watset.util
Interface ContextSimilarity<V>
-
- Type Parameters:
V- the type of bag elements
- All Known Implementing Classes:
ContextSimilarity.DummyContextSimilarity,CosineContextSimilarity
public interface ContextSimilarity<V> extends BiFunction<Map<V,Number>,Map<V,Number>,Number>
A similarity measure between two bags-of-words that maps them to a number.- See Also:
- Dot products
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classContextSimilarity.DummyContextSimilarity<V>A simple context similarity measure that always returns zero.
-
Method Summary
-
Methods inherited from interface java.util.function.BiFunction
andThen, apply
-
-