Spaces:
Sleeping
Sleeping
app modified dataset reorden token
Browse files
app.py
CHANGED
@@ -242,7 +242,7 @@ class Model:
|
|
242 |
|
243 |
else:
|
244 |
|
245 |
-
new_tokens,ig_tokens=self.reordenacion_tokens(tokens,'
|
246 |
new_identificadores = self.reordenacion_identificadores(ig_tokens,predicted_tokens_classes)
|
247 |
|
248 |
|
@@ -417,7 +417,7 @@ class ModeloDataset:
|
|
417 |
new_identificadores=[]
|
418 |
for item in tokenized_text:
|
419 |
|
420 |
-
aux1, aux2= self.reordenacion_tokens(item,"
|
421 |
new_tokens.append(aux1)
|
422 |
ig_tok.append(aux2)
|
423 |
|
|
|
242 |
|
243 |
else:
|
244 |
|
245 |
+
new_tokens,ig_tokens=self.reordenacion_tokens(tokens,'▁')
|
246 |
new_identificadores = self.reordenacion_identificadores(ig_tokens,predicted_tokens_classes)
|
247 |
|
248 |
|
|
|
417 |
new_identificadores=[]
|
418 |
for item in tokenized_text:
|
419 |
|
420 |
+
aux1, aux2= self.reordenacion_tokens(item,"▁")
|
421 |
new_tokens.append(aux1)
|
422 |
ig_tok.append(aux2)
|
423 |
|