Open GoogleCodeExporter opened 9 years ago
The method you propose would be simpler, but it would also duplicate
functionality provided otherwise.
You can implement a simple custom ExecutableResolver that returns the path to
your executable in the getExecutable() method. Something along these lines:
TreeTaggerWrapper wrapper = ...;
wrapper.setExecutableProvider(new ExecutableResolver() {
String getExecutable() { return "path/to/your/tt" };
void setPlatformDetector(PlatformDetector aPlatform) {};
void destroy() {};
});
I'll leave the issue open just for a little longer in case there is a good idea
how to avoid this functionality from interfering with the resolver mechanism.
One option I could imagine would be to allow specifying the binary path in the
constructor of TreeTaggerWrapper where the DefaultModelResolver is currently
created.
Original comment by richard.eckart
on 6 Jan 2015 at 10:17
Original issue reported on code.google.com by
renatoco...@gmail.com
on 26 Dec 2014 at 7:03