This is my code but when i run it in Uipath i get the error "module ‘sys’ has no attribute ‘argv’ "
The goal of my program is to extract information from a text file and pass it through the model.
import spacy
def spacy():
nlp = spacy.load(“en_core_web_sm”)
doc = open("Email data.txt", "r")
docx = nlp(doc.read())
for token in docx.ents:
print(token.text, token.label_,)
1 post - 1 participant