darkproger commited on
Commit
766dac7
1 Parent(s): b3e4e96

use B-tags everywhere for now

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ spaces = [not tok.startswith('##') for tok in tokens][1:] + [False]
38
  doc = Doc(Vocab(strings=set(tokens)),
39
  words=tokens,
40
  spaces=spaces,
41
- ents=[tag if tag == "O" else f"I-{tag}" for tag in tags])
42
 
43
  labels = TOKEN_TAGS[2:]
44
 
 
38
  doc = Doc(Vocab(strings=set(tokens)),
39
  words=tokens,
40
  spaces=spaces,
41
+ ents=[tag if tag == "O" else f"B-{tag}" for tag in tags])
42
 
43
  labels = TOKEN_TAGS[2:]
44