atanu0491 commited on
Commit
1df8200
·
1 Parent(s): 59b6863

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -45,6 +45,9 @@ if choice == 'Text Input':
45
  for token in sentence:
46
  st.write(token)
47
  #st.write(token.get_tag('pos').value)
 
 
 
48
 
49
  #print(input_data.to_tagged_string())
50
  #result_mean = model.evaluate(corpus.test, gold_label_type='pos',mini_batch_size=32, out_path=f"pred_pos.txt")
 
45
  for token in sentence:
46
  st.write(token)
47
  #st.write(token.get_tag('pos').value)
48
+ for entity in sentence.get_spans('pos'):
49
+ print(entity)
50
+
51
 
52
  #print(input_data.to_tagged_string())
53
  #result_mean = model.evaluate(corpus.test, gold_label_type='pos',mini_batch_size=32, out_path=f"pred_pos.txt")