Questions tagged [dependency-parsing]
92 questions
0
votes
1 answer
SpaCy Matcher - Restricting Potential Matches
Not too sure exactly how to word the problem, so thank you for indulging the title...
I'm using SpaCy's Matcher function to parse clauses (adverbial/prepositional/etc.) as a part of pre-processing. Some of these clauses are fairly complex and it…

Muphuka
- 1
- 1
0
votes
0 answers
How many of "tags" and "predicted_dependencies" in the dependency parsing (allennlp.predictors.predictor)?
I am using "allennlp.predictors.predictor" to extract the information of dependency parsing for sentences. May I know how many numbers of "tags" and "predicted_dependencies" are in the dependency parsing? I can not find the exactly number of "tags"…

Alva
- 1
0
votes
1 answer
Issue in creating Semgrex patterns with relation names containing ":" colon
I am trying to perform Semgrex in https://corenlp.run/ on the below sentence to extract the transition event. Since the dependency relation "obl:from" has a colon in it, I get an error. But instead, if I used nsubj, I get the desired result. Can…
0
votes
1 answer
Unable to use Allennlp biaffine parser model
I am trying to use allennlp predictor for biaffine parser. Here is the code:-
from allennlp.predictors.predictor import Predictor
predictor =…

Ankit Garg
- 11
- 1
0
votes
1 answer
Entity Attribute Extraction On Unstructured Medical Text
I am working on Named entities and their attribute extraction. Where my objective is to extract attributes associated with a particular entity in the sentence.
For example - "The Patient report is Positive for ABC disease"
In above sentence, ABC is…

Parvez Khan
- 537
- 7
- 15
0
votes
1 answer
Spacy pattern exception case based on verb form
I'm trying to make a spacy pattern that recognizes when a noun is followed by an adjective, which I have as follows:
pattern = [{'POS':'NOUN'}, {'POS':'ADJ'}]
however, I am trying to make a case exception where the adjective is not a participle form…

WanyaaGzz
- 31
- 1
0
votes
1 answer
NLP: Which are the dependency tags associated with a verb?
I need to identify all dependency tags associated with a verb. So far, I have identified:
'ROOT'
'xcomp'
spacy.explain('xcomp')
Out[72]: 'open clausal complement'
'aux'
spacy.explain('aux')
Out[73]: 'auxiliary'
Are there others?

DanielTheRocketMan
- 3,199
- 5
- 36
- 65
0
votes
2 answers
nlp: is this dependence tag correct? What does exactly it mean in this situation?
I am exploring the amazing python library and I got this:
text='The Titanic managed to sail into the coast intact, and Conan went to Chicago.'
token_pos=[token.pos_ for token in spacy_doc]
token_tag=[token.tag_ for token in…

DanielTheRocketMan
- 3,199
- 5
- 36
- 65
0
votes
1 answer
In Spacy NLP, how extract the agent, action, and patient -- as well as cause/effect relations?
I would like to use Space to extract word relation information in the form of "agent, action, and patient." For example, "Autonomous cars shift insurance liability toward manufacturers" -> ("autonomous cars", "shift", "liability") or ("autonomous…

synchronizer
- 1,955
- 1
- 14
- 37
0
votes
1 answer
How to get indices of words in a Spacy dependency parse?
I am trying to use Spacy to extract word relations/dependencies, but am a little unsure about how to use the information it gives me. I understand how to generate the visual dependency tree for debugging.
Specifically, I don’t see a way to map the…

synchronizer
- 1,955
- 1
- 14
- 37
0
votes
1 answer
How do I train a pseudo-projective parser on spaCy?
I am trying to train a parser for custom semantics following the sample code from https://raw.githubusercontent.com/explosion/spaCy/master/examples/training/train_intent_parser.py
The idea is to get a non-projective parse so when I pass a text like:…

Lben
- 83
- 1
- 12
0
votes
0 answers
Dependency parsing in python stanford core NLP
I am working on NLP project based on stanford Coe NLP.I have got the sentiment corresponding to each text/sentence-thanks to the document here
Now I need to get the list of nouns and related adjectives for each text in data frame column,there by I…
0
votes
1 answer
Stanford pos-tagger incremental training
We've been using Stanford CoreNLP for a while and most of the time it delivered correct results.
But for certain sentences the dependency parsing results mess up. As we observed, some of these errors are caused by POS tagging issue, e.g. the word…

boreas
- 1,041
- 1
- 15
- 30
0
votes
1 answer
StanfordNLP, CoreNLP, spaCy - different dependency graphs
I'm trying to use simple rules/patterns defined over a dependency graph to extract very basic informations from sentences (e.g., triples such as subject->predicate->object). I started using StanfordNLP since it was easy to set up and utlizes the GPU…

Christian
- 3,239
- 5
- 38
- 79
0
votes
1 answer
How to tell if two natural language queries have the same meaning
I am building a system to change natural language questions into SQL queries. Right now what I am implementing is a refactoring of a natural language question to be more structured so that I will have an easier time converting it into a sql…

Andrew Bury
- 3
- 3