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

Lambda function for out_of_vocabulary_token_option #24

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

keshprad
Copy link
Contributor

@keshprad keshprad commented Jul 3, 2021

This is a solution for lambda function feature request in #23

  1. Created out_of_vocabulary_handler
    • Added ability to handle lambda function
      • the lambda function gets token_og_case, which has the original casing
    • I realized that the current release is implicitly using .lower() if an invalid option for out_of_vocabulary_token_option is passed (eg: out_of_vocabulary_token_option = 'upper')
      • This is due to L128.
      • I'm now passing the token with original casing to the handler function. If an invalid option is passed, I will use .title()
  2. Added test case for lambda function.
  3. Updated README for out_of_vocab options

@keshprad
Copy link
Contributor Author

keshprad commented Jul 3, 2021

PR isn't ready to merge yet. I'm unsure how to address this, but would be a quick fix after we discuss

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.

1 participant