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

[Feature]: Function to write a ColumnCorpus instance to files #3488

Open
chelseagzr opened this issue Jul 3, 2024 · 1 comment
Open

[Feature]: Function to write a ColumnCorpus instance to files #3488

chelseagzr opened this issue Jul 3, 2024 · 1 comment
Labels
feature A new feature

Comments

@chelseagzr
Copy link

Problem statement

It would be nice if there is a function to write a ColumnCorpus instance to files.

Related issues:
#988
#2591

Solution

Add a method write_to_directory to the ColumnCorpus class:

class ColumnCorpus(MultiFileColumnCorpus):

    def write_to_directory(self, label_types: list[str], output_directory: Path):
        """With a list of label_types specified, write the train, dev, test datasets of this corpus to files in CoNLL format."""

Additional Context

Is there any reason the ColumnCorpus class should not have a function like this?
If not, I can draft a PR for this feature.

@chelseagzr chelseagzr added the feature A new feature label Jul 3, 2024
@helpmefindaname
Copy link
Collaborator

Hi @chelseagzr

I don't see a reason to not have this. PR's are welcome, thank you for volunteering :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants