DD0101 commited on
Commit
dc3cc89
1 Parent(s): ee35d4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ class MyPipeline(TokenClassificationPipeline):
20
 
21
 
22
  length = len(model_inputs['input_ids'][0]) - 2
23
- tokens = tokenizer.tokenize(sentence)
24
  seek = 0
25
  offset_mapping_list = [[(0, 0)]]
26
  for i in range(length):
 
20
 
21
 
22
  length = len(model_inputs['input_ids'][0]) - 2
23
+ tokens = self.tokenizer.tokenize(sentence)
24
  seek = 0
25
  offset_mapping_list = [[(0, 0)]]
26
  for i in range(length):