|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.annolab.tt4j.DefaultModelResolver
public class DefaultModelResolver
Simple model provider. The model name is actually the path to the model.
The path has to be followed by a ":" and the name model encoding. Example
/usr/lib/model.par:UTF-8.
| Field Summary | |
|---|---|
protected List<String> |
_additionalPaths
|
protected PlatformDetector |
_platform
|
| Constructor Summary | |
|---|---|
DefaultModelResolver()
|
|
| Method Summary | |
|---|---|
Model |
getModel(String aModelName)
Load the model with the given name. |
Model |
getModel(String aModelName,
String aLocation,
String aEncoding)
|
PlatformDetector |
getPlatformDetector()
Get platform information. |
void |
setAdditionalPaths(List<String> aAdditionalPaths)
Set additional paths that will be used for searching the TreeTagger executable. |
void |
setPlatformDetector(PlatformDetector aPlatform)
Set platform information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PlatformDetector _platform
protected List<String> _additionalPaths
| Constructor Detail |
|---|
public DefaultModelResolver()
| Method Detail |
|---|
public void setAdditionalPaths(List<String> aAdditionalPaths)
aAdditionalPaths - list of additional paths.Util.getSearchPaths(List, String)public PlatformDetector getPlatformDetector()
public Model getModel(String aModelName)
throws IOException
ModelResolver
getModel in interface ModelResolveraModelName - the name of the model.
IOException - if the model can not be found.
public Model getModel(String aModelName,
String aLocation,
String aEncoding)
throws IOException
IOExceptionpublic void setPlatformDetector(PlatformDetector aPlatform)
ModelResolver
setPlatformDetector in interface ModelResolveraPlatform - the platform information.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||