Skip to content

how to load model inside jar #2271

Answered by maziyarpanahi
sunbuhui asked this question in Q&A
Discussion options

You must be logged in to vote
  • it is not recommended to bundle such a large file inside your JAR.
  • If you wish you do so anyway, you need to load the pipeline offline.
val explainedPipeline = PipelineModel.load("/tmp/explain_document_dl_en_2.0.2_2.4_1556530585689/")

You need to use a relative path to where this directory is once the JAR is packaged.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@sunbuhui
Comment options

Answer selected by sunbuhui
Comment options

You must be logged in to vote
1 reply
@sunbuhui
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants