public class KeywordBasedStatementFilter2 extends Object implements Predicate<org.apache.jena.rdf.model.Statement>
Constructor and Description |
---|
KeywordBasedStatementFilter2(Set<String> questionWords) |
Modifier and Type | Method and Description |
---|---|
Map<org.apache.jena.rdf.model.Statement,String> |
getStatement2TokenMap() |
Set<org.apache.jena.rdf.model.Statement> |
getStatementsBelowThreshold(double threshold) |
double |
getThreshold() |
void |
setThreshold(double threshold) |
boolean |
test(org.apache.jena.rdf.model.Statement s) |
public KeywordBasedStatementFilter2(Set<String> questionWords)
public boolean test(org.apache.jena.rdf.model.Statement s)
public void setThreshold(double threshold)
public double getThreshold()
public Set<org.apache.jena.rdf.model.Statement> getStatementsBelowThreshold(double threshold)
public Map<org.apache.jena.rdf.model.Statement,String> getStatement2TokenMap()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann