public class BabelfyConstraints
extends java.lang.Object
| Constructor and Description |
|---|
BabelfyConstraints() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAnnotatedFragments(SemanticAnnotation... annotatedFragment)
Provides
SemanticAnnotations for fragments in context |
boolean |
addFragmentToDisambiguate(CharOffsetFragment... charOffsetToDisambiguate)
Sets the only fragments to disambiguate (used only if disambiguationConstraint !=
BabelfyParameters.DisambiguationConstraint.DISAMBIGUATE_ALL) |
boolean |
addFragmentToDisambiguate(TokenOffsetFragment... tokenOffsetToDisambiguate)
Sets the only fragments to disambiguate (used only if disambiguationConstraint !=
BabelfyParameters.DisambiguationConstraint.DISAMBIGUATE_ALL) |
java.util.Set<SemanticAnnotation> |
getAnnotatedFragments()
Returns the
SemanticAnnotations for fragments in context provided as disambiguation
aid |
java.util.Set<CharOffsetFragment> |
getCharToDisambiguate()
Returns the set of fragments to be disambiguated
|
java.util.Set<TokenOffsetFragment> |
getTokenToDisambiguate()
Returns the set of fragments to be disambiguated
|
public java.util.Set<TokenOffsetFragment> getTokenToDisambiguate()
public java.util.Set<CharOffsetFragment> getCharToDisambiguate()
public java.util.Set<SemanticAnnotation> getAnnotatedFragments()
SemanticAnnotations for fragments in context provided as disambiguation
aidSemanticAnnotations provided as disambiguation aidpublic boolean addFragmentToDisambiguate(TokenOffsetFragment... tokenOffsetToDisambiguate)
BabelfyParameters.DisambiguationConstraint.DISAMBIGUATE_ALL)tokenOffsetToDisambiguate - the only fragments to disambiguatepublic boolean addFragmentToDisambiguate(CharOffsetFragment... charOffsetToDisambiguate)
BabelfyParameters.DisambiguationConstraint.DISAMBIGUATE_ALL)charOffsetToDisambiguate - the only fragments to disambiguatepublic boolean addAnnotatedFragments(SemanticAnnotation... annotatedFragment)
SemanticAnnotations for fragments in contextannotatedFragment - the semantically annotated fragments to use as disambiguation aid