public interface WordSenseDisambiguator
Modifier and Type | Method and Description |
---|---|
String |
disambiguate(List<Set<String>> sentenceConcepts,
int index,
Set<String> contextConcepts,
int windowSize,
ConceptSimilarityService.SimilarityMetricEnum metric,
Map<String,Double> scoreMap) |
String |
disambiguate(List<Set<String>> sentenceConcepts,
int index,
Set<String> contextConcepts,
int windowSize,
ConceptSimilarityService.SimilarityMetricEnum metric,
Map<String,Double> scoreMap,
boolean weighted)
Disambiguate a named entity.
|
String disambiguate(List<Set<String>> sentenceConcepts, int index, Set<String> contextConcepts, int windowSize, ConceptSimilarityService.SimilarityMetricEnum metric, Map<String,Double> scoreMap)
String disambiguate(List<Set<String>> sentenceConcepts, int index, Set<String> contextConcepts, int windowSize, ConceptSimilarityService.SimilarityMetricEnum metric, Map<String,Double> scoreMap, boolean weighted)
sentenceConcepts
- named entities from the document, represented as list of
sets of concept idsindex
- index of target named entity to disambiguatecontextConcepts
- context concepts, e.g. from titlewindowSize
- number of named entities on either side of target to use for
disambiguationmetric
- metric to usescoreMap
- optional to get the scores assigned to each conceptweighted
- to weight context concepts by frequencyCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.