Skip to content

Add yield tuple write mode - #37

Closed
larrylawl wants to merge 1 commit into
Helsinki-NLP:masterfrom
larrylawl:master
Closed

larrylawl wants to merge 1 commit into
Helsinki-NLP:masterfrom
larrylawl:master

Conversation

@larrylawl

@larrylawl larrylawl commented Dec 29, 2022 •

Copy link
Copy Markdown

Motivation. I want OpusRead.printPairs to be a generator for downstream task. Specifically, I intend to share Opus as a huggingface dataset (see: DatasetBuilder._generate_examples in link).

Change. Added yield_tuple write mode which allows OpusRead.printPairs to be a generator.

P.s. thanks for this amazing package!

@svirpioj

svirpioj commented Dec 2, 2026

Copy link
Copy Markdown
Member

A corresponding method (yieldPairs) was implemented in #47. Closing.

@svirpioj svirpioj closed this Dec 2, 2026
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