All Questions
1,122 questions
2
votes
0
answers
39
views
How to apply semantic tokenize on sentence in java by NLP?
Can an NLP model be used to tokenize a sentence based on its semantic meaning?
For example,
for the sentence: If the driver's age is more than 20,
the tokens would be:
Token1: if
Token2: driver age
...
0
votes
0
answers
26
views
Dep extraction rules using NLPPort
When I'm trying to extract to deps from chunk and entities (even from depchunks) from sentence extract "A Lua e o Sol estão muito distantes." I got some entries like this:
(...)
A: Triple [...
0
votes
1
answer
27
views
Stanford NLP Annotation pipeline.annotate resulting into OutOfMemoryError in Java
So we are using Stanford NLP to annotate input text, and these input texts are laughably small. Below is one example of the same.
"Can you give me details about Mohammad Siva John with ...
0
votes
1
answer
115
views
How to Export Gensim Word2Vec Model with Ngram Weights for DL4J?
I'm quite new to nlp. I'm trying to use a model trained with gensim in dl4j. I'm saving the model with
w2v_model.wv.save_word2vec_format("path/to/w2v_model.bin", binary=True)
and afterwards ...
0
votes
1
answer
128
views
How to query questions with high similarity based on the input question content?
I have a student exam system in Java. There are more than one million questions in the mysql database. The question content consists of Chinese, English, and latex mathematical formulas.
Now, I want ...
1
vote
1
answer
175
views
Why does OpenNLP CLI output "SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" on Windows?
Based on Apache OpenNLP documentation, I downloaded binary version of OpenNLP, then set JAVA_HOME and OPENNLP_HOME. When I run opennlp command it faced to below exception:
SLF4J: Failed to load class &...
1
vote
2
answers
561
views
Any alternative of Python Transfomer Package in java?
I am loading a Python model from Hugging Face.
A pretrained model used to generate answers of questions from a given context.
Model Description:
model link page
Model loading sample:
from transformers ...
0
votes
0
answers
64
views
to determine if the results of two arbitrary sql statements are the same
In a nl2sql scenario,different LLMs generates different sql statements for a certain natural language query. How can I write codes to determine if the results of these sql statements are the same or ...
0
votes
1
answer
85
views
How to get Enhanced++ dependency labels with a java command line in the terminal?
I don't really know java, but I was just trying to use the documentation of the Stanford NLP parser to get the Enhanced++ dependency labels. This is the line I ran:
java -cp "*" -Xmx2g edu....
1
vote
0
answers
234
views
Stanford CoreNLP Help -- Cannot import edu.stanford.nlp.pipeline
I am trying to build an application in eclipse IDE for my resume (my first) and have ran into a problem in my main file, where I am trying to import edu.stanford.nlp.pipeline.*; and have been playing ...
1
vote
0
answers
40
views
How to use ProcessBuilder or Nooj API in a Java project with intellij?
Hello,
I'm working on a Java project that uses the Nooj library for linguistic analysis. I downloaded the JAR file of Nooj from the Nooj download page and added it as a dependency in my pom.xml file:
...
1
vote
1
answer
95
views
How to assign multiple tags to a token using OpenNLP?
I'm using OpenNLP and it works fine for detecting parts of speech and such when doing this:
try (InputStream modelIn = new FileInputStream("en-pos-maxent.bin"){
POSModel model = new ...
0
votes
0
answers
167
views
How to properly split streaming text into paragraphs?
I am using okhttp subscribing to a SSE( https://en.wikipedia.org/wiki/Server-sent_events) stream, the onEvent callback is use to receive new data from upstream and passed by data param as String
It ...
0
votes
0
answers
44
views
how can i get the word sequence of a concatenated words by java?
I want to get the word sequence of a combining words, like a variable name - "NullPointException".
I want to get the "Null","point","Exception" by java.
So, Are ...
4
votes
0
answers
333
views
How to create a simple Italian Model for a Named Entity Extraction of Persons using OpenNLP?
I have to do a project with OpenNLP, strictly in italian language. Since it's almost impossible to find some existing structures in this language, my idea is to create a simple model myself. Reading ...