public class DefaultModelResolver extends java.lang.Object implements ModelResolver
/usr/lib/model.par:UTF-8.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
_additionalPaths |
protected PlatformDetector |
_platform |
| Constructor and Description |
|---|
DefaultModelResolver() |
| Modifier and Type | Method and Description |
|---|---|
Model |
getModel(java.lang.String aModelName)
Load the model with the given name.
|
Model |
getModel(java.lang.String aModelName,
java.lang.String aLocation,
java.lang.String aEncoding) |
PlatformDetector |
getPlatformDetector()
Get platform information.
|
void |
setAdditionalPaths(java.util.List<java.lang.String> aAdditionalPaths)
Set additional paths that will be used for searching the TreeTagger
executable.
|
void |
setPlatformDetector(PlatformDetector aPlatform)
Set platform information.
|
protected PlatformDetector _platform
protected java.util.List<java.lang.String> _additionalPaths
public void setAdditionalPaths(java.util.List<java.lang.String> aAdditionalPaths)
aAdditionalPaths - list of additional paths.Util.getSearchPaths(List, String)public PlatformDetector getPlatformDetector()
public Model getModel(java.lang.String aModelName) throws java.io.IOException
ModelResolvergetModel in interface ModelResolveraModelName - the name of the model.java.io.IOException - if the model can not be found.public Model getModel(java.lang.String aModelName, java.lang.String aLocation, java.lang.String aEncoding) throws java.io.IOException
java.io.IOExceptionpublic void setPlatformDetector(PlatformDetector aPlatform)
ModelResolversetPlatformDetector in interface ModelResolveraPlatform - the platform information.Copyright © 2014. All Rights Reserved.