Class BabelNetQuery
java.lang.Object
it.uniroma1.lcl.babelnet.BabelNetQuery
- All Implemented Interfaces:
LKBQuery
The class for a query to get synsets and senses from the
BabelNet class. Use BabelNetQuery.Builder to build a query.- Author:
- navigli
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanTrue if the search is insensitive to accents, etc.Lemmas to use for restricting resultsprotected Set<BabelLemmaType> Lemma types to use for searchprotected Set<it.uniroma1.lcl.jlt.util.POS> Parts of speech to use for restricting resultsprotected Set<ResourceID> Resource IDs for restricting resultsprotected Set<it.uniroma1.lcl.jlt.util.Language> Languages to use for searchprotected List<Predicate<? super BabelSense>> Filters to be applied to each sense of each synset retrievedprotected Set<BabelSenseSource> Sources to use for restricting resultsprotected List<Predicate<? super BabelSynset>> Filters to be applied to each synset retrievedprotected Set<it.uniroma1.lcl.jlt.util.Language> Languages to use for populating results -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReturns true if the constraints include at least one sense filterprotected booleanReturns true if the constraints include at least one synset filterprotected booleantestSynsetFilters(BabelSynset synset) Tests all the synset filters against the input synset
-
Field Details
-
lemmas
-
searchLanguages
Languages to use for search -
targetLanguages
Languages to use for populating results -
sources
Sources to use for restricting results -
poses
Parts of speech to use for restricting results -
resourceIDs
Resource IDs for restricting results -
bNormalizedLemma
protected boolean bNormalizedLemmaTrue if the search is insensitive to accents, etc. -
synsetFilters
Filters to be applied to each synset retrieved -
senseFilters
Filters to be applied to each sense of each synset retrieved -
lemmaTypes
Lemma types to use for search
-
-
Constructor Details
-
BabelNetQuery
protected BabelNetQuery()
-
-
Method Details
-
testSynsetFilters
Tests all the synset filters against the input synset- Parameters:
synset- the synset to test filters against- Returns:
- true if all predicate-based filters return true
-
hasSynsetFilters
protected boolean hasSynsetFilters()Returns true if the constraints include at least one synset filter- Returns:
- true if the constraints include at least one synset filter
-
hasSenseFilters
protected boolean hasSenseFilters()Returns true if the constraints include at least one sense filter- Returns:
- true if the constraints include at least one sense filter
-