I have some code that looks something like this:
class FoodTrainer(images: S3Path) {
I want to build a JAR assembly ( sbt assembly ), call val classifier = new FoodTrainer(s3Dir).train() and publish a JAR that has an instance of classifier that is instantly accessible to users of the library downstream.
What is the easiest way to do this? What are some established paradigms for this? I know that this is a fairly common idiom in ML projects for publishing trained models, for example. http://nlp.stanford.edu/software/stanford-corenlp-models-current.jar
How to do this with sbt assembly , where I don't need to check a large model class or data file in my version control?
java scala jar sbt sbt-assembly
pathikrit
source share