Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
140 views

I am attempting to write a small dependency parser using a multiclass perceptron as the learner. The parser is a simple machine that has a few actions: START_ARC, MOVE_RIGHT, END_ARC and to move ...
Nils Blomqvist's user avatar
0 votes
0 answers
23 views

How can I extract a single noun that is the head of multiple children? I'm facing an issue in dependency matching in spaCy. I want to extract the nouns describing the name entities (identified by ...
Emma's user avatar
  • 1
1 vote
1 answer
1k views

I'm a beginner in NLP and i've decided to start with Spacy. It's simple to handle and to comprehend. Neverthless, i can't acess to the full documentation or parsing. I mean , i don't know the meaning ...
ZADI's user avatar
  • 13
0 votes
0 answers
112 views

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 (&...
waka 's user avatar
0 votes
0 answers
283 views

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 ...
hulky.smash's user avatar
1 vote
1 answer
804 views

I am working on extracting entities from scientific text (I am using scispacy) and later I will want to extract relations using hand-written rules. I have extracted entities and their character span ...
planetx's user avatar
  • 13
0 votes
1 answer
1k views

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. ...
Muphuka's user avatar
0 votes
0 answers
56 views

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&...
Alva's user avatar
  • 1
1 vote
1 answer
267 views

I am trying to incorporate spacy's dependency parser into a legacy code in java through web API. All other components tokenizer, tagger, merged_words, NER are done from the legacy NLP code. I am only ...
hunsvadis's user avatar
4 votes
1 answer
984 views

Currently doing a project in NLP. I need to find out whether a sentence have a noun in it. How can I achieve this using spacy?
ye_c_'s user avatar
  • 83
1 vote
0 answers
482 views

Here is the question: I am loading my pytorch model(best result on dev set while training) from the checkpoint file during model evaluation, remembering to do model.eval() and with torch.no_grad(), I ...
switchsyj's user avatar
1 vote
1 answer
256 views

I would like to run some analysis on documents using different Spacy tools, though I am interested in the Dependency Matcher in particular. It just so happens that for these documents, I already have ...
user94154's user avatar
  • 16.6k
1 vote
1 answer
2k views

The aim is to extract the sub-tree (phrases) from the sentence if the 'nsubj' exists in the given sentence. Here is the code which I am using: import spacy nlp = spacy.load('en') piano_doc = nlp('...
aravind kamarsu's user avatar
1 vote
1 answer
205 views

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 ...
Hariprasad Ramakrishnan's user avatar
0 votes
1 answer
846 views

I am trying to use allennlp predictor for biaffine parser. Here is the code:- from allennlp.predictors.predictor import Predictor predictor = Predictor.from_path("https://s3-us-west-2.amazonaws....
Ankit Garg's user avatar
2 votes
0 answers
906 views

I have a query about formatting the output of the dependency parsing module when the document to be parsed contains more than one sentence. One of the examples of using the dependency parsing module ...
mcr's user avatar
  • 43
0 votes
1 answer
962 views

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 ...
Parvez Khan's user avatar
0 votes
1 answer
181 views

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 ...
WanyaaGzz's user avatar
3 votes
1 answer
1k views

I've been trying to make a specific pattern for a spacy matcher using Verbs tenses and moods. I found out how to access morphological features of words parsed with spacy using model.vocab.morphology....
WanyaaGzz's user avatar
1 vote
1 answer
313 views

I am using the dependence parse of spacy. I am puzzled with these two very similar sentences. Sentence 1: text='He noted his father was a nice guy.' Note that in this sentence "father" is ...
DanielTheRocketMan's user avatar
0 votes
1 answer
181 views

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]: ...
DanielTheRocketMan's user avatar
0 votes
2 answers
150 views

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=...
DanielTheRocketMan's user avatar
1 vote
1 answer
1k views

I am exploring the spacy nlp python library. I have got this: text='Daniel is a smart clever professor.' spacy_doc = nlp(text) token_pos=[token.pos_ for token in spacy_doc] token_tag=[token.tag_ for ...
DanielTheRocketMan's user avatar
1 vote
0 answers
358 views

Question Is there a way to detect whether a token is a conjunction head in spaCy? Problem description I'd like the following sentence: "Both Americans and Muslim friends and citizens, tax-paying ...
Fourthought's user avatar
0 votes
1 answer
1k views

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&...
synchronizer's user avatar
  • 2,115
0 votes
1 answer
2k views

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 ...
synchronizer's user avatar
  • 2,115
1 vote
0 answers
497 views

I am doing some research about chatbots and more specifically Dialogflow. When I was searching for the intent classification I find out that Dialogflow is using rule-based grammar matching and ML ...
Tim Gast's user avatar
0 votes
1 answer
386 views

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 ...
Lben's user avatar
  • 83
1 vote
0 answers
538 views

The following is how my class defines gap-degree: The gap-degree of a word in a dependency tree is the least k for which the substring consisting of the word and its descendants is entirely comprised ...
solvingequations98's user avatar
2 votes
1 answer
3k views

I am studying dependency parsing using CoNLL-U format. I can find how to handle CoNLL-U parser or tokenlist, but I cannot find how to convert a text sentence into a CoNLL-U format. I tried converting ...
user13530797's user avatar
7 votes
1 answer
1k views

Using Spacy, I extract aspect-opinion pairs from a text, based on the grammar rules that I defined. Rules are based on POS tags and dependency tags, which is obtained by token.pos_ and token.dep_. ...
Makoto Miyazaki's user avatar
4 votes
1 answer
6k views

I have a use case where I want to extract main meaningful part of the sentence using spacy or nltk or any NLP libraries. Example sentence1: "How Can I raise my voice against harassment" Intent would ...
Subhabrata Mallick's user avatar
0 votes
0 answers
369 views

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 ...
Krishnalekha Moolayil's user avatar
2 votes
3 answers
2k views

Spacy's site said they use universal dependencies scheme in their annotations specifications page. But when I parse "I love you", '''you''' was made a "dobj" of "love". There's no "dobj" in the ...
IKnowHowBitcoinWorks's user avatar
1 vote
1 answer
972 views

I am using coreNLP module demo by Stanford online here: https://corenlp.run . So, I am trying out a few sentences to see their syntactic structure using dependency parser available here. One such ...
Lucky Sunda's user avatar
2 votes
1 answer
878 views

I used the SpaCy library to generate dependencies and save it into a CoNLL format using the code below. import pandas as pd import spacy df1 = pd.read_csv('cleantweets', encoding='latin1') df1['...
KoKo's user avatar
  • 379
1 vote
0 answers
94 views

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 ...
sten's user avatar
  • 7,546
0 votes
1 answer
335 views

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 ...
boreas's user avatar
  • 1,061
0 votes
1 answer
1k views

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 ...
Christian's user avatar
  • 3,423
7 votes
2 answers
8k views

I have the following code: import spacy from spacy import displacy from pathlib import Path nlp = spacy.load('en_core_web_sm', parse=True, tag=True, entity=True) sentence_nlp = nlp("John go home to ...
Kusi's user avatar
  • 805
0 votes
1 answer
174 views

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 ...
Andrew Bury's user avatar
2 votes
1 answer
494 views

POS tagging for PROPN not working in an expected manner using the en_core_web_lg model. POS tagging works more predictably using the _md model. Given the (poorly-formed) sentence: "CK7, CK-20, GATA 3, ...
Zippy242's user avatar
0 votes
1 answer
2k views

I'm very new to using spaCy. I have been reading the documentation for hours and I'm still confused if it's possible to do what I have in my question. Anyway... As the title says, is there a way to ...
Wisner's user avatar
  • 62
1 vote
2 answers
830 views

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 ...
Jack Parsons's user avatar
0 votes
1 answer
674 views

I'm working on a project about dependency parsing for Polish. We’re trying to train the Stanford Neural Network Dependency Parser on data from Polish language (using Universal Dependencies treebanks ...
Frank Tiffoe's user avatar
2 votes
1 answer
661 views

Can anyone give me few sentences on when the dependency parser fails and why they failed and what is the fix for it?
arkham knight's user avatar
0 votes
0 answers
98 views

I have a RDF/Turtle Resource as below: @prefix factory: <http://linkedfactory.iwu.fraunhofer.de/vocab#> . @prefix : <http://linkedfactory.iwu.fraunhofer.de/data/> . @prefix rdf: <http:...
zoint's user avatar
  • 108
3 votes
2 answers
469 views

I am working on the following problem: I would like to split sentences into subsentences using Stanford CoreNLP. The example sentence could be: "Richard is working with CoreNLP, but does not really ...
moritz's user avatar
  • 314
1 vote
1 answer
170 views

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 ...
Satyaaditya's user avatar
0 votes
1 answer
362 views

i am trying to extract main verb in a sentence and i followed this question , i am expecting output in this format nsubj(swim-4, Parrots-1) aux(swim-4, do-2) neg(swim-4, not-3) root(ROOT-0, swim-4) ...
Satyaaditya's user avatar