Spaces:
Sleeping
Sleeping
app modified
Browse files
app.py
CHANGED
@@ -359,11 +359,12 @@ class ModeloDataset:
|
|
359 |
ig_tok.append(aux2)
|
360 |
print('new_tokens',new_tokens)
|
361 |
print('ig_tok',ig_tok)
|
362 |
-
|
363 |
for items in _predicted_tokens_classes:
|
364 |
-
|
365 |
-
|
366 |
-
|
|
|
367 |
i=i+1
|
368 |
print('new_identificadores',new_identificadores)
|
369 |
|
@@ -486,7 +487,7 @@ def procesar(texto,archivo, etiquetas):
|
|
486 |
for item in df.columns.values:
|
487 |
sentences=df[item]
|
488 |
model.identificacion_idioma(sentences[0])
|
489 |
-
print('sentences',sentences)
|
490 |
ides, predicted = modelo.aplicar_modelo(sentences,model.idioma)
|
491 |
|
492 |
|
|
|
359 |
ig_tok.append(aux2)
|
360 |
print('new_tokens',new_tokens)
|
361 |
print('ig_tok',ig_tok)
|
362 |
+
|
363 |
for items in _predicted_tokens_classes:
|
364 |
+
if i<len(tokenized_text[i]):
|
365 |
+
print('len(_predicted_tokens_classes)',len(items))
|
366 |
+
aux=self.reordenacion_identificadores(ig_tok[i],items)
|
367 |
+
new_identificadores.append(aux)
|
368 |
i=i+1
|
369 |
print('new_identificadores',new_identificadores)
|
370 |
|
|
|
487 |
for item in df.columns.values:
|
488 |
sentences=df[item]
|
489 |
model.identificacion_idioma(sentences[0])
|
490 |
+
#print('sentences',sentences)
|
491 |
ides, predicted = modelo.aplicar_modelo(sentences,model.idioma)
|
492 |
|
493 |
|