Closed ygorg closed 1 year ago
When using modes from this repo using apertium-python the results are weirdly formatted. I think this is linked to new/old style transfer which is dealt with in the apertium CLI in apertium/wblank-mode.cc#L67.
apertium-python
I don't know if the solution is to change modes.xml (apertium-transfer * autobil.bin to lt-proc -b autobil.bin | apertium_transfer *) or to change apertium-python (see https://github.com/ygorg/apertium-python/commit/9fcace1c38c09ee3cb6147e773285771aa851ca4).
modes.xml
apertium-transfer * autobil.bin
lt-proc -b autobil.bin | apertium_transfer *
# apertium-python import apertium apertium.translate('br', 'fr', "P'edon war bont an Naoned") # '@pa je #/tre @war @an #/ont de @Naoned@'
# apertium CLI echo "P'edon war bont an Naoned" | apertium br-fr # Quand j'étais sur le pont de Nantes
Yes, we should do this for all repos. We can script the conversion and get it done in a single run.
This modification only concerns the modes.xml files or does it concern other files ?
Only modes.xml
When using modes from this repo using
apertium-python
the results are weirdly formatted. I think this is linked to new/old style transfer which is dealt with in the apertium CLI in apertium/wblank-mode.cc#L67.I don't know if the solution is to change
modes.xml
(apertium-transfer * autobil.bin
tolt-proc -b autobil.bin | apertium_transfer *
) or to changeapertium-python
(see https://github.com/ygorg/apertium-python/commit/9fcace1c38c09ee3cb6147e773285771aa851ca4).