Probabilistic, natural language parser.
Questions tagged [stanford-parser]
15 questions
4
votes
4 answers
Limiting the number of iterations in Stanford NER
I am training the Stanford NER CRF model, on a customised dataset but the number of iterations that is being used to train the model have now gone to
333 iterations-i.e. and this training process has now gone for hours.
Below is the message printed…

akshendra Garg
- 51
- 4
2
votes
0 answers
How do I configure Stanford corenlp to get parse tree without running a server?
Here I am facing the problem. I don't want to run nlp server on my system, I just want to get a parse tree by binding with my code for my use cases. Please anyone help me out.
nlp = StanfordNLP() #it runs the server which I completely don't want…

allakonda harish
- 70
- 1
- 8
2
votes
0 answers
How do i generate "STree.txt" file in Stanford Sentiment TreeBank
Under the Stanford Sentiment TreeBank, directory there are several files, which is explained clearly in the README.txt file.
And i've my own dataset and i am thinking to train my own dataset using the Stanford Sentiment (RNTN). But i am wondering…

Jagesh Maharjan
- 866
- 1
- 11
- 24
1
vote
1 answer
How to extract NP (Noun phrases) and VP (Verb Phrases) by using library of python called pycorenlp
I am using the pycornlp library. This library provides a python wrapper for stanford corenlp.
I am able to get a parsetree which is given below.
(ROOT
(S
(NP (PRP He))
(VP (VBP drink)
(NP
(NP (NN tomato) (NN soup))
(PP (IN in)
(NP…

Jalshop
- 11
- 2
1
vote
1 answer
Stanford NER for phrases or compound entities
I noticed that corenlp.run can identify "10am tomorrow" and parse it out as time. But the training tutorial and the docs I've seen only allow for 1 word per line. How do I get it to understand a phrase.
On a related note, is there a way to tag…

user1170883
- 93
- 9
1
vote
1 answer
Can Stanford Parser ignore case?
I've been playing with http://corenlp.run/ and noticed that it is case sensitive.
For example, it tags "i" as FW versus "I" as PRP.
Can I train it to ignore case? More generally, how do I go about training it for non-well formed sentences?

user1170883
- 93
- 9
1
vote
0 answers
cannot parse sentence using stanford parser even i have set environment variables
I am using python 3.5.
I downloaded the Stanford parser and extracted it. I have also set the environment variable properly and it got set properly. But when I ran a sentence and tried to parse I am getting an error.
This is the error:
Traceback…

vicky
- 11
- 1
1
vote
1 answer
Getting error while using Stanford Core NLP In java (tokensregex.parser.TokenMgrError)
I am getting this error
Error: edu.stanford.nlp.ling.tokensregex.parser.TokenMgrError:Encountered: "\'", after : ""
I am using latest 2016-10-31 version of stanford core nlp,
Here is my code
static MaxentTagger tagger = new…

Muhammad Samad
- 11
- 1
1
vote
0 answers
hide command prompt while setting java home Python
Currently I am working on PartOfSpeech(POS) tagging in Python using Stanford POStagger. I have set the java home
java_path = "Path to java bin"
os.environ['JAVAHOME'] = java_path
Below is my code
def getPOSandSentiment(sentence):
…

Deepa Huddar
- 321
- 1
- 4
- 15
1
vote
1 answer
Dependency Parsing graph for a paragraph
I am working on a NLP project. I want to create a dependency parsing graph for an entire paragraph, instead of sentence. Is there an existing method for the same?

Deesha
- 538
- 8
- 27
0
votes
1 answer
Using Stanford parser with python in nltk, how to set the model path
I want to use Stanford parser with python in nltk package, it works well on pos tagger and NER tagger, but when it comes to parser, it do not work.
here is the codes:
import nltk
from nltk.parse import stanford
import os
from nltk.parse import…

Yue Cao
- 61
- 1
- 3
0
votes
1 answer
Resolve Coreference using Stanford Parser in .NET
Basically what I want is to replace all the pronouns from a text with the actual entity.
// Path to the folder with models extracted from `stanford-corenlp-3.7.0-models.jar`
var jarRoot = ...
// Text for processing
…

Kari
- 201
- 2
- 5
0
votes
1 answer
spaCy-like dependency graph navigation in CoreNLP
Is it possible to navigate the dependency parse tree in CoreNLP the way one does that in spaCy as described here? So far I see that token attributes like lemmas, POS tags, etc. are retrievable through an index, e.g. sent.lemmas(5) returns the lemma…

Aleksandar Savkov
- 2,894
- 3
- 24
- 30
0
votes
1 answer
How to choose Coreference resolution system in Stanford CoreNLP
I am trying to test the coreference resolution system from core-nlp. From Running coreference resolution on raw text, I understand setting the general properties for the 'dcoref system'.
I would like to choose between the co-reference systems…

Betafish
- 1,212
- 3
- 20
- 45
0
votes
0 answers
Stanford Parser: How to extract dependencies
I would like to extract all of the dependencies in a sentence using Stanford parser. Consider the followoing code
LexicalizedParser lp = LexicalizedParser.loadModel();
lp.setOptionFlags(new String[] { "-maxLength", "80",…

AbtPst
- 7,778
- 17
- 91
- 172