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

Python compatibility #77

Merged

Conversation

mh-northlander
Copy link
Collaborator

part of #52.

  • Add Dictionary.close()
  • Add SplitMode also under Tokenizer

@mh-northlander
Copy link
Collaborator Author

Should we let Tokenizer.tokenize to take logger (and do nothing with it)?

@eiennohito
Copy link
Collaborator

Yes, accepting and ignoring logger parameter is OK.

fn tokenize(
&self,
text: &str,
mode: Option<PySplitMode>,
enable_debug: Option<bool>, // want to take logger instead of debug flag
logger: Option<PyObject>,
enable_debug: Option<bool>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it is a bad idea to expose enable_debug here.

Current implementation of debug output is a placeholder, we should not expose it to Python.

@mh-northlander mh-northlander merged commit c39bed0 into WorksApplications:develop Oct 11, 2021
@mh-northlander mh-northlander deleted the python-compatibility branch October 11, 2021 09:43
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