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