Skolkovo Institute of Science and Technology commited on
Commit
afe332e
1 Parent(s): b92b103

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -22,10 +22,10 @@ In this task, the model gets the string with text with the error and the exact s
22
  from feedback_generation_nigula.generator import FeedbackGenerator
23
 
24
  fg = FeedbackGenerator(cuda_index = 0)
25
- text = "The smoke flow my face ."
26
- span = (10,17)
27
 
28
- fg.get_feedback([text], [span])
29
 
30
  # expected output ["When the <verb> <<flow>> is used as an <intransitive verb> to express'' to move in a stream'', a <preposition> needs to be placed to indicate the direction"]
31
 
22
  from feedback_generation_nigula.generator import FeedbackGenerator
23
 
24
  fg = FeedbackGenerator(cuda_index = 0)
25
+ text_with_error = "The smoke flow my face ."
26
+ error_span = (10,17)
27
 
28
+ fg.get_feedback([text_with_error ], [error_span ])
29
 
30
  # expected output ["When the <verb> <<flow>> is used as an <intransitive verb> to express'' to move in a stream'', a <preposition> needs to be placed to indicate the direction"]
31