public class ToblersLawEvaluator extends Object
Constructor and Description |
---|
ToblersLawEvaluator(Env env,
LanguageSet languages) |
Modifier and Type | Method and Description |
---|---|
void |
evaluateAll(File outputPath)
Evaluate all pairs from loaded concepts
|
void |
evaluateBipartite(File outputPath,
List<UniversalPage> concepts1,
List<UniversalPage> concepts2)
Evaluate all pairs that one location is in "concepts1" and the other one is in "concepts2"
|
void |
evaluateSample(File outputPath,
int numSamples)
Evaluate a specified number of random pairs from loaded concepts
|
List<UniversalPage> |
getParsedConcepts() |
void |
retrieveAllLocations()
Load all locations from all language editions of Wikipedia to concepts
|
void |
retrieveLocations(Map<Integer,com.vividsolutions.jts.geom.Geometry> geometries)
Load specified tagged geometries to concepts
|
public ToblersLawEvaluator(Env env, LanguageSet languages) throws org.wikibrain.conf.ConfigurationException
org.wikibrain.conf.ConfigurationException
public void retrieveAllLocations() throws DaoException
DaoException
public void retrieveLocations(Map<Integer,com.vividsolutions.jts.geom.Geometry> geometries) throws DaoException
geometries
- DaoException
public void evaluateSample(File outputPath, int numSamples) throws IOException
outputPath
- numSamples
- IOException
public void evaluateAll(File outputPath) throws IOException, DaoException, WikiBrainException
outputPath
- IOException
DaoException
WikiBrainException
public List<UniversalPage> getParsedConcepts()
public void evaluateBipartite(File outputPath, List<UniversalPage> concepts1, List<UniversalPage> concepts2) throws IOException, DaoException, WikiBrainException
outputPath
- concepts1
- concepts2
- IOException
DaoException
WikiBrainException
Copyright © 2015. All rights reserved.