I have a python file:
import stanza
#stanza.download('en') # download English model
nlp = stanza.Pipeline('en') # initialize English neural pipeline
doc = nlp("I am a girl.") # run annotation over a sentence
for sentence in doc.sentences:
for word in sentence.words:
print(word.text,end="/")
print(word.lemma,end="/")
print(word.pos,end="/ ")
The output of this python file is: I/I/PROPN is/be/AUX a/a/DET girl/girl/NOUN ././PUNCT
Now, I want to fetch this external python file output in Django. And display the same output in a text-area. How to achieve this?
I am a beginner in Django. Can anyone please help me?