Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
output = pd.DataFrame()
text = open(txtfile, "r",encoding='UTF-8', errors='ignore').read()
result = call_sherpa(text,project,model,server,mytoken)
result['document'] = txtfile
output = output.append(result, ignore_index=True)
output = output.set_index('document')
output.to_csv(MYOUTPUTFILE, sep='\t')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment