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

Custom token_text_key in dataset_creator.create() #17

Open
vsocrates opened this issue Apr 2, 2024 · 0 comments
Open

Custom token_text_key in dataset_creator.create() #17

vsocrates opened this issue Apr 2, 2024 · 0 comments

Comments

@vsocrates
Copy link

vsocrates commented Apr 2, 2024

There's a few bugs that breaks the token_text_key parameter in dataset_creator.create(). Namely, at the following line, get_tokens() needs to take in the token_text_key, otherwise it expects the default text.

sent_tokens = [sent_tok for sent_tok in self._dataset.get_tokens(
text=note_text,
spans=note_spans,
notation=notation
)]

This has downstream effects on a few tokenizers as well. Will make a pull request shortly.

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

No branches or pull requests

1 participant