3,452 questions
3
votes
1
answer
198
views
polars implementation for creating objects selecting specific attributes
The stanza annotation pipeline processes a text and it creates Sentences which in turn comprise of Words. These are objects created by Stanza. I want to select specific attributes of the Word objects ...
0
votes
1
answer
351
views
Python NLTK: LookupError for 'averaged_perceptron_tagger_eng' after download
I'm attempting to perform Part-of-Speech (POS) tagging in a Jupyter Notebook using the NLTK package. The averaged_perceptron_tagger resource cannot be located, according to the LookupError I keep ...
0
votes
0
answers
329
views
How to change a verb to its noun form (gerund) using the Stanford-NLP library?
I have individual verbs in a collection of String objects (thanks to How to find whether a word is a noun or a verb using Stanford parser?). Now for each, I would like to obtain the appropriate noun ...
0
votes
0
answers
21
views
When I used stanford corenlp tool and SCPN, SCPN told me no "NP-TMP" tag in its vocab
I was using stanford corenlp == 3.9.0,and I used it to analyze the SST-2 datasets.
When I gave the results of corenlp to the SCPN, something went wrong. SCPN told me there is no NP-TMP tag in its ...
0
votes
1
answer
63
views
Grammar and spelling mistake corrector in Java using NLP
I am trying to create a Java project to correct grammar and spelling mistakes. For this, I am using the org.languagetool API, but it is not correcting the mistakes accurately.
My pom.xml dependency
&...
0
votes
0
answers
24
views
Standford NLP library - How to identify similar words (Dash, DashPro, Dash Pro, Dpo, dpo) and get one word (DashPro) to match against training model?
Is there a way to identify similar words and convert it into one word before match against training model using Stanford NLP library?
For example, user inputs could be:
DashPro
Dash Pro
dpo
Dash
For ...
2
votes
0
answers
47
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
101
views
constituency parser in french
I want to get constituency trees for french documents. I've tried to install several tools but all of those I found are quite old and I didn't succeed.
Benepar : it looks very interesting but doesn't ...
2
votes
0
answers
43
views
How to deal with large Stanford NLP models in development?
I have a C# class whose static constructor is as follows:
static MyClass()
{
var baseDirectory = AppDomain.CurrentDomain.BaseDirectory;
var modelsAssemblyPath = Path.Combine(baseDirectory, &...
0
votes
0
answers
32
views
package edu.stanford.nlp.trees.semgraph does not exist
I am trying to get the codes from this paper to run on my Linux machine. The repository can be found at https://github.com/onexpeters/PAROT. As expected of AI researchers, the project lacks basic ...
1
vote
3
answers
242
views
Getting GloVe embeddings using gensim, triu not found in scipy.linalg
I am trying to build a sentiment analysing model, using the GloVe word embeddings...
I found multiple sources on how to import the embeddings into python, this one seemed to be the simplest...
Trying ...
0
votes
0
answers
28
views
Is there a method to load caseless models to Stanford's NLP sentiment analysis?
In the Stanford documentation, the authors mention using caseless models to process case-insensitive text. Namely the ability to load the GATE Twitter POS annotator. It is a POS annotator, but it ...
0
votes
0
answers
99
views
What am I missing from this trace of the GloVe Word Embedding for DJL?
I am trying to use the GloVe word embedding for my program in DJL observe performance between CPU and GPU. However, there are no Cuda 12 jars for MxNet at this moment so I am wanting to use the ...
0
votes
1
answer
129
views
GloVe embedding for empty string
It looks like the embedding for the empty string in the glove.twitter.27B.200d.txt file that's part of this zip file:
https://nlp.stanford.edu/data/glove.twitter.27B.zip
is provided on line 38523, but ...
2
votes
0
answers
116
views
How can I correctly change the upos of words in a sentence using Stanza?
I am using Stanza in order to receive a sentence and change its upos tag so that I can get a more personalized constituency tree. This is my code snippet :
import stanza
import nltk
from nltk import ...