LoloSemper commited on
Commit
208d2b6
·
verified ·
1 Parent(s): 8395c7d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -2028,7 +2028,7 @@ _register_ipfv_3s_reverse()
2028
  # Coste medido: ~6 s al arranque (3 ejecuciones: 5.5, 5.5, 7.4 s). Una
2029
  # sola pasada al final, no afecta el bucle interno de override. Corrige
2030
  # ~328K entradas NI2ES (verificado en lex actual con 129 parches).
2031
- VERSION_MARKER = "v148_2026_05_20_haber_aux_in_verb_ctx"
2032
  try:
2033
  print(f"[Neoíbero translator] versión cargada: {VERSION_MARKER}", flush=True)
2034
  print(f"[Neoíbero translator] léxico activo: {CSV_BI}", flush=True)
@@ -2277,9 +2277,15 @@ def translate_es_to_ni_bi(text:str):
2277
 
2278
  # v111: det + N(sust) + homógrafo → V (patrón sujeto+verbo)
2279
  # Solo se activa para palabras con AMBAS entradas N y V (homógrafos N/V).
 
 
 
 
 
2280
  if ni_verb and ni_nom and prev_prev_key in _NOUN_CTX:
2281
  if ES2NI_POS.get(prev_key, "") == "N":
2282
- return ni_verb
 
2283
 
2284
  if prev_key in _INFINITIVE_CTX:
2285
  inf_key = lower(current_tok)
 
2028
  # Coste medido: ~6 s al arranque (3 ejecuciones: 5.5, 5.5, 7.4 s). Una
2029
  # sola pasada al final, no afecta el bucle interno de override. Corrige
2030
  # ~328K entradas NI2ES (verificado en lex actual con 129 parches).
2031
+ VERSION_MARKER = "v149_2026_05_20_v111_excl_adj"
2032
  try:
2033
  print(f"[Neoíbero translator] versión cargada: {VERSION_MARKER}", flush=True)
2034
  print(f"[Neoíbero translator] léxico activo: {CSV_BI}", flush=True)
 
2277
 
2278
  # v111: det + N(sust) + homógrafo → V (patrón sujeto+verbo)
2279
  # Solo se activa para palabras con AMBAS entradas N y V (homógrafos N/V).
2280
+ # v149: NO aplicar cuando la palabra actual es ADJ. El patrón
2281
+ # "det + N + ADJ" es nominal puro (un sintagma con adjetivo postnominal),
2282
+ # no SVO. Sin esta guarda, las V PART del 175 (kamsistok-ir, gu-lokdutmir-ir,
2283
+ # benkoŕ-ir...) se activaban incorrectamente tras "el trabajo", "un campo",
2284
+ # etc., produciendo V donde el español exige ADJ.
2285
  if ni_verb and ni_nom and prev_prev_key in _NOUN_CTX:
2286
  if ES2NI_POS.get(prev_key, "") == "N":
2287
+ if ES2NI_POS.get(key, "") != "ADJ":
2288
+ return ni_verb
2289
 
2290
  if prev_key in _INFINITIVE_CTX:
2291
  inf_key = lower(current_tok)