Questions tagged [dependency-parsing]

92 questions
1
vote
0 answers

Pattern-lib : Which word is the ROOT(dependency parsing) of the sentence?

In spacy the start of the dependency begins at ROOT. In pattern.en the same verb is just tagged as VP. If there are multiple VP's how do you know which one is the ROOT ? Is it always the one marked with "-1" ? : pattern.en.parse('John hit the…
sten
  • 7,028
  • 9
  • 41
  • 63
1
vote
2 answers

About parsing parentheses in English model

This sentence is part of the Simplified Wikipedia: There are three things in air, Nitrogen (79%), oxygen (20%), and other types of gases (1%). The parenthetical percentages are not handled well in spaCy 2.0 and 2.1. What is the best way to handle…
Jack Parsons
  • 161
  • 7
1
vote
1 answer

coreNLPDependencyParser output explanation

i am running coreNLPDependencyParser for a sentence The quick brown fox jumps over the lazy dog. and i am getting output in this way The DT 4 det quick JJ 4 amod brown JJ 4 amod fox NN 5 …
Satyaaditya
  • 537
  • 8
  • 26
1
vote
0 answers

Ignore/Mask certain labels Softmax Cross-entropy

In trying implement the cross entropy loss with l2 regularization described here A Fast and Accurate Dependency Parser using Neural Networks, I get the error: ValueError: Cannot feed value of shape (48,) for Tensor u'Placeholder_2:0', which has…
dreamin
  • 187
  • 1
  • 3
  • 12
1
vote
1 answer

Generate three level dependency in case a verb is attached with non verb in dependency parsing

I am using dependency parsing for a use case in R with the corenlp package. However, I need to tweak the dataframe for a specific use case. I need a dataframe where I have three columns. I have used the below code to reach till the dependency…
NinjaR
  • 621
  • 6
  • 22
1
vote
1 answer

Stanford CoreNLP Dependency Parser Usage with Unsupported Languages

I am trying to train CoreNLP's NN based dependency parser in Turkish. I have found the command below in the documentation of the parser: Train a parser with CoNLL treebank data: java edu.stanford.nlp.parser.nndep.DependencyParser -trainFile…
betul
  • 11
  • 1
1
vote
1 answer

Inconsistent dependecy parsing?

I have the following two sentences I'm analysing using the same Stanford CoreNLP (3.8.0) pipeline. What I don't understand is why the dependency parser builds different trees even though the sentences are grammatically identical. Is there a way to…
Dr. Vick
  • 195
  • 2
  • 15
1
vote
1 answer

stanford-dependency parser with NLTK :UnicodeDecodeError:

I am trying to run the following lines of code: import os os.environ['JAVAHOME'] = 'path/to/java.exe' os.environ['STANFORD_PARSER'] = 'path/to/stanford-parser.jar' os.environ['STANFORD_MODELS'] = 'path/to/stanford-parser-3.8.0-models.jar' from…
Uther Pendragon
  • 302
  • 2
  • 14
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
1
vote
1 answer

How much data is required to train SyntaxNet?

I know the more data, the better it's but what would be a reasonable amount of data required to train SyntaxNet?
1
vote
0 answers

Stanford Dependency Parser using NLTK on Python very Slow

path_to_jar = path + 'stanford-parser-full-2015-12-09/stanford-parser.jar' path_to_models_jar = path + 'stanford-parser-full-2015-12-09/stanford-parser-3.6.0-models.jar' sentence='This is a nice phone 4 me' print 'Loading module' start=…
1
vote
1 answer

Iterate Dependency Graph items generated by Stanford Dependency Parser

I am struggling to go over the results of Stanford Dependency Parser. It prints the information successfully but I can't access it. This is what I see when I print the results. defaultdict(. at…
user970155
  • 23
  • 4
0
votes
0 answers

How to draw dependency graph using stanza

I have tried stanza and I got the result(As shown in the figure). But I cant draw graph from the result. I want to draw a dependency graph like the below figureDG graph using stanza or corenlp .Could you please help me to draw the graph.
0
votes
0 answers

Dependency Parsing in Spacy

I want to extract the pair verb-noun of my text using dependency parsing. I did this: document = nlp('appoint department heads or managers and assign or delegate responsibilities to them ') print ("{:<15} | {:<8} | {:<15} |…
0
votes
0 answers

How can I parse the action that belongs to a Person using Spacy in Python?

I have a set of acknowledgements extracted from academic papers that contain sentences like the following: I would like to thank PERSON1 for helping me with this paper. We gratefully acknowledge PERSON2 for operating the equipment. PERSON3 and…
hulky.smash
  • 23
  • 1
  • 4