Skip to content

Instantly share code, notes, and snippets.

@zwurgl
Created April 16, 2020 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zwurgl/03be71623c939dda33715471348f0503 to your computer and use it in GitHub Desktop.
Save zwurgl/03be71623c939dda33715471348f0503 to your computer and use it in GitHub Desktop.
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