apertium / lttoolbox

Finite state compiler, processor and helper tools used by apertium
http://wiki.apertium.org/wiki/Lttoolbox
GNU General Public License v2.0
18 stars 22 forks source link

Wordbound blank handling in post generation #102

Closed khannatanmai closed 4 years ago

khannatanmai commented 4 years ago

Example: Input:

[[t:b:Z9eiLA]]El[[/]] [[t:s:8AjRFw]]perro[[/]] [[t:i:4_tPUA]]~de[[/]] [[t:b:123445]]el[[/]] [[t:i:wSM6RQ]]amigo[[/]][]

Output:

[[t:b:Z9eiLA]]El[[/]] [[t:s:8AjRFw]]perro[[/]] [[t:i:4_tPUA; t:b:123445]]del[[/]] [[t:i:wSM6RQ]]amigo[[/]][]

For more examples see PostgenerationWordboundBlankTest in lttoolbox/tests/lt_proc/__init__.py.