public class DefaultModelResolver extends Object implements ModelResolver
/usr/lib/model.par:UTF-8.| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
_additionalPaths |
protected PlatformDetector |
_platform |
| Constructor and Description |
|---|
DefaultModelResolver() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected PlatformDetector _platform
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
ModelResolvergetModel 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)
ModelResolversetPlatformDetector in interface ModelResolveraPlatform - the platform information.Copyright © 2014. All Rights Reserved.