LoloSemper commited on
Commit
0ee04fd
verified
1 Parent(s): 071f847

Upload 2 files

Browse files
Files changed (2) hide show
  1. 173_paradigmas_completos.csv.gz +3 -0
  2. app.py +10 -3
173_paradigmas_completos.csv.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a512366c6716a6a0fcd90d345b1924bd895880eb78ffa6b95f0325dbb2c30fa2
3
+ size 37682
app.py CHANGED
@@ -1858,7 +1858,11 @@ def _recompute_ambig_ni_after_patches():
1858
  _recompute_ambig_ni_after_patches()
1859
 
1860
  def _register_ipfv_3s_reverse():
1861
- suffixes_1s_to_3s = ['-ska-n', '-tei-n', '-na-n', '-nabo-n']
 
 
 
 
1862
  added = 0
1863
  skipped = 0
1864
  new_entries = []
@@ -2024,7 +2028,7 @@ _register_ipfv_3s_reverse()
2024
  # Coste medido: ~6 s al arranque (3 ejecuciones: 5.5, 5.5, 7.4 s). Una
2025
  # sola pasada al final, no afecta el bucle interno de override. Corrige
2026
  # ~328K entradas NI2ES (verificado en lex actual con 129 parches).
2027
- VERSION_MARKER = "v146_2026_05_20_add_verb_registra_inversa"
2028
  try:
2029
  print(f"[Neo铆bero translator] versi贸n cargada: {VERSION_MARKER}", flush=True)
2030
  print(f"[Neo铆bero translator] l茅xico activo: {CSV_BI}", flush=True)
@@ -2327,7 +2331,10 @@ def translate_es_to_ni_bi(text:str):
2327
  def _adjust_ipfv_ambiguous_person(ni, left_context):
2328
  if not (ni and isinstance(ni, str)):
2329
  return ni
2330
- ambiguous_suffixes = ("-ska-n", "-tei-n", "-na-n", "-nabo-n")
 
 
 
2331
  if any(ni.endswith(suf) for suf in ambiguous_suffixes):
2332
  if _has_explicit_3s_subject(left_context):
2333
  return ni[:-2]
 
1858
  _recompute_ambig_ni_after_patches()
1859
 
1860
  def _register_ipfv_3s_reverse():
1861
+ # v147: SBJ usa -ni-n y SBJ_IPFV usa -nibo-n (sufijos dominantes en el lex).
1862
+ # Los antiguos -na-n y -nabo-n son residuales (~93 entradas) pero se
1863
+ # mantienen por compatibilidad.
1864
+ suffixes_1s_to_3s = ['-ska-n', '-tei-n', '-ni-n', '-nibo-n',
1865
+ '-na-n', '-nabo-n']
1866
  added = 0
1867
  skipped = 0
1868
  new_entries = []
 
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 = "v147_2026_05_20_fix_sbj_suffixes"
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)
 
2331
  def _adjust_ipfv_ambiguous_person(ni, left_context):
2332
  if not (ni and isinstance(ni, str)):
2333
  return ni
2334
+ # v147: incluir sufijos SBJ dominantes -ni-n y -nibo-n. Antiguos
2335
+ # -na-n y -nabo-n se mantienen para entradas residuales.
2336
+ ambiguous_suffixes = ("-ska-n", "-tei-n", "-ni-n", "-nibo-n",
2337
+ "-na-n", "-nabo-n")
2338
  if any(ni.endswith(suf) for suf in ambiguous_suffixes):
2339
  if _has_explicit_3s_subject(left_context):
2340
  return ni[:-2]