...
Code Block |
---|
my-plastic/ lib/ morphers/ schemas/ classifiers/ |
To use the Plastic logic, you can create a new SearchPath("/opt/myapp/my-plastic") instance, passing the file system location to that root directory, and pass that to a new instance of CartorapherWorker. This worker's lifetime should be that of your application. Just call worker.translate(...) for each translation.
Out-of-the-box tutorial examples
...