public class TopResultConsensusDisambiguator extends Disambiguator
Modifier and Type | Class and Description |
---|---|
static class |
TopResultConsensusDisambiguator.Provider |
Constructor and Description |
---|
TopResultConsensusDisambiguator(List<PhraseAnalyzer> phraseAnalyzers) |
Modifier and Type | Method and Description |
---|---|
List<LinkedHashMap<LocalId,Float>> |
disambiguate(List<LocalString> phrases,
Set<LocalString> context)
Disambiguates multiple strings in some language to local pages in that language.
|
List<LocalId> |
disambiguateTop(List<LocalString> phrases,
Set<LocalString> context)
Disambiguates multiple strings in some language to local pages in that language.
|
LocalId |
disambiguateTop(LocalString phrase,
Set<LocalString> context)
Disambiguates a single string in some language to a local page in that language.
|
disambiguate
public TopResultConsensusDisambiguator(List<PhraseAnalyzer> phraseAnalyzers)
public LocalId disambiguateTop(LocalString phrase, Set<LocalString> context) throws DaoException
Disambiguator
disambiguateTop
in class Disambiguator
phrase
- The target phrase 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
public List<LocalId> disambiguateTop(List<LocalString> phrases, Set<LocalString> context) throws DaoException
Disambiguator
disambiguateTop
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
public List<LinkedHashMap<LocalId,Float>> disambiguate(List<LocalString> phrases, Set<LocalString> context) throws DaoException
Disambiguator
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.