'Correcting incorrect spacy label
I try to use Spacy to syntactically parse the following sentence:
my_sentence = "delete failed setup"
So I do the following:
import spacy
nlp = spacy.load("en")
doc = nlp(my_sentence)
However, Spacy does not recognize this sentence as an imperative, and thinks "delete" is a proper noun (PROPN) here, whereas it believes "failed" to be the verb.
Is there any way to nudge Spacy in the right direction, as it were? In particular, I have some domain knowledge so I know that this particular verb, "delete", is very likely to be a verb, not a noun.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
