Hi! I'm using spacy in PT, I would like to do something like that:
{ (...)
doc=nlp("Tu encontraste o livro independentemente dele ter dito alguma coisa.")
for token in doc:
--------- if token.pos_ == 'ADV':
--------------> del(doc[token]) <---
}
Basically I want to delete a token from doc. How can I do it? (this example I've an adverb, but it's not necessary an adverb)
Many thanks,
Fernando