-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
GH-3488: Support for writing a ColumnCorpus instance to files #3497
base: master
Are you sure you want to change the base?
GH-3488: Support for writing a ColumnCorpus instance to files #3497
Conversation
1c8f4ad
to
d1ce766
Compare
a8bc603
to
6941510
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this!
One issue is that this adds many public methods to ColumnCorpus and ColumnDataset, which may be confusing to users since most of these are used only for a single functionality. I suggest leaving only the respective "save" and "load" method public (since these are the ones that users will call), and marking all others as internal.
@alanakbik Could you please review the new changes when you have a chance? Thank you! |
@alanakbik Could you please review the new changes when you have a chance? Thank you! |
hello @chelseagzr very sorry it took so long! I updated your branch for our current master, but one of the imports got lost. Could you add it back in? |
This PR addresses #3488
Current limitations:
write_to_directory
whitespace_after
attribute of tokens will not be preserved after saving the corpus to files; onlydefault_whitespace_after
attribute of datasets will be preserved.