atanu0491 commited on
Commit
28121b0
·
1 Parent(s): 1df8200

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -41,12 +41,8 @@ if choice == 'Text Input':
41
  model = load_model('best-model-002.pt')
42
  model.predict(sentence)
43
  st.write(sentence.to_original_text())
44
- st.write(sentence.to_tagged_string())
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())
 
41
  model = load_model('best-model-002.pt')
42
  model.predict(sentence)
43
  st.write(sentence.to_original_text())
44
+ st.write(sentence.to_tagged_string()[1])
45
+
 
 
 
 
46
 
47
 
48
  #print(input_data.to_tagged_string())