[ACCEPTED]-Scala get file path of file in resources folder-stanford-nlp
Accepted answer
I managed to be able to get the file path 1 by doing the following
val url=getClass.getResource("/my_model.ser.gz")
val classifier = CRFClassifier.getClassifier(url.getPath())
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.