public class TrieEntityCandidateGenerator extends EntityCandidateGenerator
Constructor and Description |
---|
TrieEntityCandidateGenerator(org.semanticweb.owlapi.model.OWLOntology ontology,
EntityCandidatesTrie candidatesTrie) |
Modifier and Type | Method and Description |
---|---|
Set<EntityScorePair> |
getCandidates(Annotation annotation) |
HashMap<Annotation,Set<EntityScorePair>> |
getCandidatesMap(Set<Annotation> annotations) |
void |
postProcess(HashMap<Annotation,Set<EntityScorePair>> candidatesMap,
int window,
StopWordFilter stopWordFilter)
Postprocess the annotations generated by annotate
The objective is to merge annotations which are likely to belong to the same entity
|
public TrieEntityCandidateGenerator(org.semanticweb.owlapi.model.OWLOntology ontology, EntityCandidatesTrie candidatesTrie)
public Set<EntityScorePair> getCandidates(Annotation annotation)
getCandidates
in class EntityCandidateGenerator
public void postProcess(HashMap<Annotation,Set<EntityScorePair>> candidatesMap, int window, StopWordFilter stopWordFilter)
window
- : maximum distance between the annotationspublic HashMap<Annotation,Set<EntityScorePair>> getCandidatesMap(Set<Annotation> annotations)
getCandidatesMap
in class EntityCandidateGenerator
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann