How to single out the Stanford Core NLP Models Spanish file? #1407
Replies: 2 comments 4 replies
-
There's a "jar" tool that ships with JDK that can be used to take apart and
rebuild the jar file to meet your exact specifications
…On Tue, Jan 16, 2024 at 9:25 AM edump72 ***@***.***> wrote:
I am using Android Studio. I have the Stanford Core NLP Models 4.2.0 jar
file, but I want to massively reduce the space of the jar file so I want to
eliminate every other redundant file :
Captura.de.pantalla.717.png (view on web)
<https://github.com/stanfordnlp/CoreNLP/assets/100035955/6ab4aec5-349e-4e79-b722-2cc2f1e11bd6>
This is the current loading of the model, and all works perfectly, but as
I have said, it is massively heavy and slow :
Captura.de.pantalla.719.png (view on web)
<https://github.com/stanfordnlp/CoreNLP/assets/100035955/d4931fa9-b061-4117-b7b9-354bdb0bb002>
I have tried to add on the libs folder only the spanish model I want and
also to name all the paths involving it, but the result has been
nullPointerExceptions as according to Android Studio, the file does not
exist :
Captura.de.pantalla.720.png (view on web)
<https://github.com/stanfordnlp/CoreNLP/assets/100035955/6a9237bc-823e-428c-8459-2b173649ae01>
I will be pleased if somebody could help me . Thanks in advance!
—
Reply to this email directly, view it on GitHub
<#1407>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2AYWO4IDE2JML5Y5GVIQLYO2ZXBAVCNFSM6AAAAABB5F3LV6VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGA4DGMJXG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
-
I would say you need to provide the complete path (edu/stanford/...)
…On Wed, Jan 17, 2024, 7:41 AM edump72 ***@***.***> wrote:
Ok seriously, thank you so much again. I now have been able to extract
only the necessary model for my app to work, however at the time of naming
the model to access to it I always get an error as mentioned in the first
post. The name of the file is .gz. Do you have any idea of how to possibly
name it without getting a NullPointerException?
Captura.de.pantalla.720.png (view on web)
<https://github.com/stanfordnlp/CoreNLP/assets/100035955/ab0c40e3-2b44-4180-abda-8a94b5950aa7>
—
Reply to this email directly, view it on GitHub
<#1407 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2AYWOJEVXQ4L7S2FADOVDYO7WLPAVCNFSM6AAAAABB5F3LV6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNJYGQ4TE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
edump72
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Android Studio. I have the Stanford Core NLP Models 4.2.0 jar file, but I want to massively reduce the space of the jar file so I want to eliminate every other redundant file :
This is the current loading of the model, and all works perfectly, but as I have said, it is massively heavy and slow :
I have tried to add on the libs folder only the spanish model I want and also to name all the paths involving it, but the result has been nullPointerExceptions as according to Android Studio, the file does not exist :
I will be pleased if somebody could help me . Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions