Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordbound blank handling in post generation #102

Merged
merged 5 commits into from
Jul 22, 2020
Merged

Wordbound blank handling in post generation #102

merged 5 commits into from
Jul 22, 2020

Conversation

khannatanmai
Copy link
Member

@khannatanmai khannatanmai commented Jul 21, 2020

  • Wordbound blanks merge when words merge.
  • Wordbound blanks apply to all output words when output of postgen rule are more than input words.
  • No regression for postgeneration without wordbound blanks.
  • Lots of tests added.

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.

@khannatanmai khannatanmai marked this pull request as ready for review July 22, 2020 12:54
@khannatanmai khannatanmai merged commit 3542261 into master Jul 22, 2020
@khannatanmai khannatanmai deleted the stream branch July 22, 2020 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants