org.dllearner.scripts.improveWikipedia
Class WikipediaCategoryTasks
java.lang.Object
org.dllearner.scripts.improveWikipedia.WikipediaCategoryTasks
public class WikipediaCategoryTasks
- extends Object
WikipediaCategoryTasks
public WikipediaCategoryTasks(SPARQLTasks sparqlTasks)
calculateWrongIndividualsAndNewPosEx
public SortedSet<String> calculateWrongIndividualsAndNewPosEx(List<EvaluatedDescriptionPosNeg> conceptresults,
SortedSet<String> posExamples)
- The strategy is yet really simple. //TODO take the best concept and the
notCoveredPositives are the ones definitely wrong these are removed from
the positives examples.
- Parameters:
conceptresults - posExamples -
makeNewNegativeExamples
public SortedSet<String> makeNewNegativeExamples(List<EvaluatedDescriptionPosNeg> reEvaluatedDesc,
SortedSet<String> posExamples,
double negFactor)
- TODO could be more sophisticated
- Parameters:
reEvaluatedDesc -
makeInitialExamples
public void makeInitialExamples(String targetCategory,
double percentOfSKOSSet,
double negFactor,
int sparqlResultLimitNegativeExamples,
boolean stable)
- makes positive and negative Examples. positives are a simple retrieval of
the category. negatives are made from parallelclasses.
- Parameters:
targetCategory - percentOfSKOSSet - percentage used from the SKOSSet for trainingnegFactor - size of the negative Examples compared to the posExample size
(1.0 means equal size)sparqlResultLimit -
getPosExamples
public SortedSet<String> getPosExamples()
getNegExamples
public SortedSet<String> getNegExamples()
getFullPositiveSet
public SortedSet<String> getFullPositiveSet()
getDefinitelyWrongIndividuals
public SortedSet<String> getDefinitelyWrongIndividuals()
getCleanedPositiveSet
public SortedSet<String> getCleanedPositiveSet()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann