changed chunk generation
Browse files- ref_seg_ger.py +1 -0
ref_seg_ger.py
CHANGED
|
@@ -216,6 +216,7 @@ class RefSeg(datasets.GeneratorBasedBuilder):
|
|
| 216 |
|
| 217 |
#tokenized_input = row['token'].split(' ')
|
| 218 |
tokenized_input, offsets = zip(*self.TOKENIZER.pre_tokenize_str(row['token']))
|
|
|
|
| 219 |
if len(tokenized_input) > 1:
|
| 220 |
if row['tag'] == 'B':
|
| 221 |
if tokenized_input[0] == '':
|
|
|
|
| 216 |
|
| 217 |
#tokenized_input = row['token'].split(' ')
|
| 218 |
tokenized_input, offsets = zip(*self.TOKENIZER.pre_tokenize_str(row['token']))
|
| 219 |
+
tokenized_input = list(tokenized_input)
|
| 220 |
if len(tokenized_input) > 1:
|
| 221 |
if row['tag'] == 'B':
|
| 222 |
if tokenized_input[0] == '':
|