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

Problem with tokenizing of elements and text #1

Open
ebeshero opened this issue Jun 21, 2022 · 1 comment
Open

Problem with tokenizing of elements and text #1

ebeshero opened this issue Jun 21, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ebeshero
Copy link
Member

@Yuying-Jin and I discovered that many collation errors are generated by a problem with tokenization, which tags <.+?> are getting mashed in tokens with neighboring texts and spaces between are removed. Adjusting the extract() function in the Python script doesn't help: we can insert spaces as we wish, but the tokens still mash markup and text together.

Example of a "smashed token":

`<add/>some', 'text'

We can add space, but the tokenization is unaffected:

'<add/> some', 'text'

We need to determine how to change the tokenization to definitively split around XML tags.

@ebeshero ebeshero added the bug Something isn't working label Jun 22, 2022
@ebeshero
Copy link
Member Author

Is this resolved now with our longToken algorithm? @Yuying-Jin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants