This commit is contained in:
www
2020-10-26 20:30:12 +00:00
commit 58be5c779a
14 changed files with 673 additions and 0 deletions

20
spacytest.py Normal file
View File

@@ -0,0 +1,20 @@
import spacy
q= "Hast du beispiele für Mathe1?"
nlp=spacy.load('de_core_news_md')
d=nlp(q)
print(d.text)
print([t for t in d])
print([t.tag_ for t in d])
print([t.lemma_ for t in d])
print([spacy.explain(t.tag_) for t in d])