public class MilneWittenDisambiguator extends Disambiguator
Modifier and Type | Class and Description |
---|---|
static class |
MilneWittenDisambiguator.Provider |
Constructor and Description |
---|
MilneWittenDisambiguator(LocalPageDao pageDao,
PhraseAnalyzer analyzer,
SRMetric metric)
Construct a new disambiguator that uses a particular metric.
|
Modifier and Type | Method and Description |
---|---|
List<LinkedHashMap<LocalId,Float>> |
disambiguate(List<LocalString> phrases,
Set<LocalString> context)
Given
|
disambiguate, disambiguateTop, disambiguateTop
public MilneWittenDisambiguator(LocalPageDao pageDao, PhraseAnalyzer analyzer, SRMetric metric) throws DaoException
pageDao
- analyzer
- metric
- DaoException
public List<LinkedHashMap<LocalId,Float>> disambiguate(List<LocalString> phrases, Set<LocalString> context) throws DaoException
disambiguate
in class Disambiguator
phrases
- The target phrases being disambiguated.context
- Other phrases (in the same language as the target phrase)
related to the target phrase being disambiguated that may
aid disambiguation.DaoException
Copyright © 2014. All rights reserved.