Questions tagged [stanford-nlp]
Questions on the open source natural language processing software from the Stanford University NLP Group, in Java, Python, and C, including Stanford CoreNLP, Stanza, and GloVe.
3,416
questions
-1
votes
0answers
7 views
Questions regarding custom training using stanford relation extractor
I am doing research in Natural Language Processing Domain and I have some list of questions and I hope you would provide your valuable feedback for them
Addressing questions after research
I want to ...
0
votes
1answer
6 views
How do I train Glove embeddings in gensim from scratch?
How do I train Glove embeddings in gensim from scratch? Can I use gensim for this?
-1
votes
0answers
19 views
stanford openie python versions compatibility [closed]
Can someone advise please which Python and Stanford Openie are compatible together? I am currently using Python 3.7.1 and I am unable to install it.
PS: I cannot upgrade the Python version, I need it ...
0
votes
0answers
6 views
Stanza substitute detected coreference with original text
I am trying to use the Coref functionality.
Please let me know if there is any inbuilt method to substitute the original text with detected coreferences.
For example:
from stanza.server import ...
-3
votes
0answers
14 views
http://nlp.stanford.edu:8080/sentiment/rntnDemo.html ---> Link seems to be not operational [closed]
http://nlp.stanford.edu:8080/sentiment/rntnDemo.html link seems to not working. Please help on this
0
votes
1answer
18 views
How to combine different embedding's generated from different algorithms like from Word2vec, GLOVE , BERT?
I want to know about the best way to combine the different embeddings that I generated from different algorithms like word2vec, GLOVE, or BERT to generate the final one.
-1
votes
0answers
16 views
live demo does not work in stanford corenlp sentiment analysis [closed]
http://nlp.stanford.edu:8080/sentiment/rntnDemo.html
is not operational, getting site can't be reached
0
votes
0answers
18 views
How can we use our own customised embedding with WordMoverDistance?
To use WMD we need some word embeddings. For this example a pre-trained embedding provided by Gensim 'word2vec-google-news-300' is used.
Below is code snippet:
import gensim.downloader as api
model = ...
1
vote
0answers
15 views
Using dask with Stanford CoreNLP server in Stanza
I am trying to optimize Stanza's CoreNLPClient with dask by trying to run it in parallel.
For example: consider the following sample DF
import pandas as pd
df = pd.DataFrame(["Eating an apple is ...
0
votes
0answers
8 views
RP Particles vs Prepositions
My question is that, how one can tell that the particular verb in the sentence does need a preposition or doesn't need it. How can one decide that the preposition is IN or RP?
0
votes
1answer
20 views
Put pretty_print() on dash application
I want to show the sentence structure on the dash application. I failed to write it inside "".format(), which is the only way I can show the output on the website. I can use pretty_print() ...
0
votes
0answers
12 views
how to solve a.io.InvalidClassException: org.ejml.data.DMatrixRMaj; local class incompatible: stream classdesc serialVersionUID
enter image description here
iam using Stanford NLP Core .. I already used some examples available on Stanford API site . the problem having this exception .
here's my code:
package com.company;
...
0
votes
0answers
10 views
speech recognition - sepech recognition based on phonemes
I want to make a speech recognition project based on phonemes. I have not an exact dataset. I am using TIMIT database and Librispeech. My main purpose is to reognize certain words spoken.
I decided to ...
0
votes
0answers
22 views
categorizing in standfordnlp by java
According to this video Categorizing in standford nlp which basically comes with this question Is that any implementation of categorizing in standford nlp or just I need to implement by myself , some ...
0
votes
0answers
9 views
Build Failed in Stanford NLP
I'm really new to this, so sorry if anything sounds really stupid. Currently trying to build the NLP and I get this:
Buildfile: /Users/Invate/mwetoolkit3/JMWE/CoreNLP-jMWE/build.xml
clean:
[delete]...
1
vote
0answers
17 views
Question about using quote and coref for Chinese
I'm trying to extract quotes and coref information from Chinese data using StanfordCoreNLP 4.2.0, in addition to the rest of the pipeline. I have been able to get tokenize,ssplit,pos,lemma,ner,...
0
votes
1answer
33 views
How to classify a document after training the model using stanford classifier?
hello i'm new with Stanford classifier, i started training models like the cheese disease dataset and 20 news by date from ( https://nlp.stanford.edu/wiki/Software/Classifier/20_Newsgroups) using the ...
0
votes
0answers
14 views
Adding words and rules to user defined grammar in NLTK CFG
Below is the original code :
import nltk
# flight grammar rules
flight_grammar = nltk.CFG.fromstring("""
S -> NP VP | VP
VP -> V NP | V NP PP
PP -> P NP
NP -> Prop |...
0
votes
0answers
22 views
Use custom Word2Vec embedding instead of GloVe
I am working on a text generation using seq2seq model where GloVe embedding is being used. I want to use a custom Word2Vec (CBOW/Gensim) embedding in this code. Can anyone please help to use my custom ...
0
votes
0answers
17 views
Glove Model Taking lots of time to give n similar words
I have a list of token and i am trying to find the top 10 similar word for each token but Glove model is taking a lot of time to return similar word.My code is:
class GloveModel:
def __init__(self)...
0
votes
0answers
10 views
What is the data used to train the Standford CoreNLP?
What is the data that the Standford CoreNLP is trained on?
I couldn't find it anywhere, some blogs in medium states corpus / English structured text. Do they mean Wikipedia / Journals/articles?
If ...
1
vote
0answers
101 views
Stanza Stanford NLP: cannot import name 'StanzaLanguage' from 'spacy_stanza'
I'm getting the following error when importing StanzaLanguage from spacy_stanza:
ImportError Traceback (most recent call last)
in ()
4 import stanza
5 stanza.download('...
0
votes
0answers
58 views
Soft cosine similarity 1 between query and a document
I am calculating the similarity between a query: query2 = 'Audit and control, Board structure, Remuneration, Shareholder rights, Transparency and Performance' and a document(in my case it is a company'...
0
votes
0answers
14 views
Java NLP: identify the employee name and id in a group
I am trying to read UAT member from a JIRA Story Description.
I have java code to pings Jira and get one story content.
My requirement is to read the description. It looks something like
.h2 ...
0
votes
0answers
14 views
Stanza and CoreNLPClient is giving different output for Arabic
I am trying to use Stanza for Arabic PoS tagging. After analyzing the output it seems that both are giving different results.
It seems that CoreNLP is more accuracte than stanza model for Arabic.
Can ...
0
votes
1answer
15 views
How to get the “relation” result from coreNLP client in python?
I have trained a new relation extractor model according to https://nlp.stanford.edu/software/relationExtractor.html
and the model works good in java with the test entry StanfordCoreNlpDemo.
However, ...
0
votes
1answer
23 views
parsivar : NLTK was unable to find the java file
I was working with parsivar (a Persian NLP library based on nltk) with this script:
from parsivar import Normalizer
from parsivar import Tokenizer
my_normalizer = Normalizer()
my_tokenizer = Tokenizer(...
0
votes
0answers
14 views
How to train a new OpenIE model?
I am using stanford-corenlp-4.2.0 for extracting data from unstructured text. It seems OpenIE is helpful but should be improved for my specific scenario.
Is it possible to train a new openie model and ...
0
votes
0answers
29 views
How to get Noun Chunks using Stanza
I previously used Spacy for language parsing. Spacy has inbuild functionality to get noun_chunks.
As spacy does not have language models for Arabic. I am trying to use stanza for this purpose.
I am ...
-2
votes
1answer
21 views
Word Embeddings on Mobiles (Android, iOS) [closed]
I would like to use Word Embeddings (aka GloVe) in my Mobile (Android, iOS) app. Nevertheless, the pre-trained weights file is large (starting from 100MB and up to 800MB). what are the generally ...
0
votes
0answers
8 views
How do you install Corenlp's Linguistic Tagger only?
I'm having trouble implementing the Stanford Corenlp 4.2.0 library into my android project.
I read the other solutions to this issue, and most of them point to reducing memory size. I only need to use ...
2
votes
1answer
129 views
Google colab Glove_Python pip install not working
I am using
! pip install glove_python
I'm not able to understand what am I doing wrong.
I'm getting this error message:
Collecting glove_python
Downloading https://files.pythonhosted.org/packages/...
0
votes
1answer
27 views
How does one tackle over-fitting in NLP based CNN models for multiclass text classification with word embeddings?
(Problem: Overfitting issues in a multiclass text classification problem)
In my personal project, the objective is to classify the industry tags of a company based on the company description. The ...
0
votes
0answers
16 views
error-setting an array element with a sequence- cosine similarity-word2vec
import gensim
import gensim.downloader as api
from gensim.models import Word2Vec
from gensim.scripts.glove2word2vec import glove2word2vec
PATH_TO_GLOVE = "Desktop/glove.840B.300d.txt"
...
0
votes
2answers
27 views
Pretrained Word Embeddings For Each Year
I am running a task where it would be nice to have different versions of word embeddings across different time periods e.g. embeddings for 2013, 2014, 2015, 2016 ... 2020. This is because I don't want ...
0
votes
0answers
12 views
How to Install Stanford Parser on windows 10
Could someone please walk me through how to install Stanford Parser, the NLP tool on windows 10? I am currently working on a project that needs a type dependency parser output.
I have downloaded:
...
0
votes
0answers
39 views
Training a Stanford NER classifier returns 'Killed' in terminal, what is the cause and how to solve it?
For my thesis my goal is to compare different NER models. Currently, I would like to start with the Stanford NER due to its popularity. The dataset I work with contains ~ 16k labelled documents (4 ...
1
vote
0answers
155 views
CoreNLP in CleanNLP - Runtime error “Expected dtype int64 for index”
I am encountering the error Error in py_call_impl(callable, dots$args, dots$keywords) : RuntimeError: index_select(): Expected dtype int64 for index when I try to run corenlp on longer strings of text ...
0
votes
1answer
23 views
How to create parse tree for generalized way to split unique sentences by subordinate or independent clauses?
I have been looking for a way to take a sentence and split it into clauses. So far I have found this example online: How to split an NLP parse tree to clauses (independent and subordinate)?
However, ...
1
vote
0answers
46 views
Stanza SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443)
I am trying to download the English models via stanza.download('en') I keep running to error below. I tried this in another laptop, and it worked just fine. What is causing the error below? How do I ...
0
votes
0answers
40 views
Sentence segmentation with trailing whitespaces in stanza (stanford corenlp)
Using the library Stanza for sentence segmentation :
import stanza
stanza.download('en')
snlp = stanza.Pipeline(lang="en",processors='tokenize')
doc = snlp(text)
doc_sents = [sentence.text ...
0
votes
1answer
19 views
Stanford Core NLP Tree Parser Sentence Limits wrong - suggestions?
I'm dealing with german law documents and would like to generate parse trees for sentences. I could find and use Standford CoreNLP Parser. However, it does not recognize sentence limits as good as ...
0
votes
0answers
11 views
user wants to access corenlp over https how to apply a cert?
using ubuntu server 18.04 and corenlp. Is it possible to give it a SSL cert to use so can reach it via browser at https
tried to add a cert to server itself using update-ca-cert.
0
votes
0answers
43 views
How to use glove with spacy tokenizer? (python, error)
I am attempting some sentiment analysis (The following links are essentially the same as what I'm working on) and need to build a a vocab from amazon reviews that have associated good/bad/ok labels. ...
0
votes
0answers
27 views
Stanford CoreNLP wrapper crashing randomly running sentiments on a large number of texts
I have to run this wrapper to analyse the sentiment of about 120K comments.
It works for some and then crashes.
I thought it was timing or memory so i changed this command accordingly to this.
$ java -...
0
votes
0answers
6 views
How to parse already POS-tagged text with Stanford parser (or Stanford CoreNLP)?
I want to run Stanford parser with POS tags obtained from another annotator. Following on an earlier question here, I do the following:
Properties props = new Properties();
props.setProperty("...
0
votes
0answers
108 views
NLP function in Standford NLP returning dtype error
Beginner in NLP and I am trying to run the below code and it is giving the following error.
doc = nlp("Barack obama in Hawaii")
doc.sentences[0].print_dependencies()
Error:
File "C:\...
0
votes
0answers
15 views
How to use TokensRegex on a text annotated by Stanford Stanza
I'm new to Stanford CoreNLP and Stanza and I was able to test Stanza (On Persian and English texts) and the CoreNLP interface (Only on English texts, while it does not support Persian) in Python ...
0
votes
0answers
28 views
How to convert a sentence in treee format for Tree-LSTM
I have applied dependency parser and constituency parsing using StandfordCoreNLP and i am getting result like.
Sentence= The actors are fantastic. They are what makes it worth the trip to the theatre. ...
0
votes
0answers
21 views
Stanford CoreNLP Java - error while loading tagger model
I have an Intellij project that uses the Stanford CoreNLP (v4.1.0) in Java and it works great. However, I'm trying to move the same code into an existing Java Web Application deployed locally using ...