org.annolab.tt4j
Interface ModelResolver

All Known Implementing Classes:
DefaultModelResolver

public interface ModelResolver

Resolve the location of the TreeTagger model.

Author:
Richard Eckart de Castilho

Method Summary
 Model getModel(String modelName)
          Load the model with the given name.
 void setPlatformDetector(PlatformDetector aPlatform)
          Set platform information.
 

Method Detail

setPlatformDetector

void setPlatformDetector(PlatformDetector aPlatform)
Set platform information.

Parameters:
aPlatform - the platform information.

getModel

Model getModel(String modelName)
               throws IOException
Load the model with the given name.

Parameters:
modelName - the name of the model.
Returns:
the model.
Throws:
IOException - if the model can not be found.


Copyright © 2011. All Rights Reserved.