public class PropertyVerbalizer extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<String> |
auxiliaryVerbs |
private net.sf.extjwnl.dictionary.Dictionary |
database |
private static org.apache.log4j.Logger |
logger |
private StanfordCoreNLPWrapper |
pipeline |
private Preposition |
preposition |
private double |
threshold |
private IRIConverter |
uriConverter |
private boolean |
useLinguisticalAnalysis |
private String |
VERB_PATTERN |
| Constructor and Description |
|---|
PropertyVerbalizer(IRIConverter uriConverter,
net.sf.extjwnl.dictionary.Dictionary wordnetDictionary) |
PropertyVerbalizer(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef,
String cacheDirectory,
net.sf.extjwnl.dictionary.Dictionary wordnetDictionary) |
| Modifier and Type | Method and Description |
|---|---|
private void |
computeExpandedVerbalization(PropertyVerbalization propertyVerbalization) |
String |
getInfinitiveForm(String word)
Returns the infinitive form for a given word.
|
double |
getScore(String token)
Returns log(nounCount/verbCount), i.e., positive for noun, negative for
verb
|
private simplenlg.features.Tense |
getTense(String word) |
private PropertyVerbalization |
getTypeByLinguisticAnalysis(String propertyURI,
String propertyText) |
PropertyVerbalizationType |
getTypeByWordnet(String property)
Determine the verbalization type of a property, i.e.
|
static void |
main(String[] args) |
private String |
normalize(String propertyText) |
void |
setThreshold(double threshold) |
void |
setUseLinguisticalAnalysis(boolean useLinguisticalAnalysis)
Whether to apply an analysis based in linguistic features in addition to
WordNet.
|
PropertyVerbalization |
verbalize(String propertyURI) |
private static final org.apache.log4j.Logger logger
private double threshold
private Preposition preposition
private net.sf.extjwnl.dictionary.Dictionary database
private final String VERB_PATTERN
private StanfordCoreNLPWrapper pipeline
private boolean useLinguisticalAnalysis
private IRIConverter uriConverter
public PropertyVerbalizer(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef,
String cacheDirectory,
net.sf.extjwnl.dictionary.Dictionary wordnetDictionary)
public PropertyVerbalizer(IRIConverter uriConverter, net.sf.extjwnl.dictionary.Dictionary wordnetDictionary)
public PropertyVerbalization verbalize(String propertyURI)
public PropertyVerbalizationType getTypeByWordnet(String property)
property - the propertypublic void setThreshold(double threshold)
public void setUseLinguisticalAnalysis(boolean useLinguisticalAnalysis)
useLinguisticalAnalysis - the useLinguisticalAnalysis to setpublic double getScore(String token)
token - Input tokenpublic String getInfinitiveForm(String word)
word - the wordprivate simplenlg.features.Tense getTense(String word)
private PropertyVerbalization getTypeByLinguisticAnalysis(String propertyURI, String propertyText)
private void computeExpandedVerbalization(PropertyVerbalization propertyVerbalization)
Copyright © 2020. All rights reserved.