public class BabelNetQuery extends Object implements LKBQuery
BabelNet
class. Use BabelNetQuery.Builder
to build a query.Modifier and Type | Class and Description |
---|---|
static class |
BabelNetQuery.Builder
Builder of
BabelNetQuery objects. |
Modifier and Type | Field and Description |
---|---|
protected boolean |
bNormalizedLemma
True if the search is insensitive to accents, etc.
|
protected Set<String> |
lemmas
Lemmas to use for restricting results
|
protected Set<com.babelscape.util.POS> |
poses
Parts of speech to use for restricting results
|
protected Set<ResourceID> |
resourceIDs
Resource IDs for restricting results
|
protected Set<it.uniroma1.lcl.jlt.util.Language> |
searchLanguages
Languages to use for search
|
protected List<Predicate<? super BabelSense>> |
senseFilters
Filters to be applied to each sense of each synset retrieved
|
protected Set<BabelSenseSource> |
sources
Sources to use for restricting results
|
protected List<Predicate<? super BabelSynset>> |
synsetFilters
Filters to be applied to each synset retrieved
|
protected Set<it.uniroma1.lcl.jlt.util.Language> |
targetLanguages
Languages to use for populating results
|
Modifier | Constructor and Description |
---|---|
protected |
BabelNetQuery() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
hasSenseFilters()
Returns true if the constraints include at least one sense filter
|
protected boolean |
hasSynsetFilters()
Returns true if the constraints include at least one synset filter
|
protected boolean |
testSynsetFilters(BabelSynset synset)
Tests all the synset filters against the input synset
|
protected Set<it.uniroma1.lcl.jlt.util.Language> searchLanguages
protected Set<it.uniroma1.lcl.jlt.util.Language> targetLanguages
protected Set<BabelSenseSource> sources
protected Set<com.babelscape.util.POS> poses
protected Set<ResourceID> resourceIDs
protected boolean bNormalizedLemma
protected List<Predicate<? super BabelSynset>> synsetFilters
protected List<Predicate<? super BabelSense>> senseFilters
protected boolean testSynsetFilters(BabelSynset synset)
synset
- the synset to test filters againstprotected boolean hasSynsetFilters()
protected boolean hasSenseFilters()
Copyright © 2016–2018. All rights reserved.