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

Any description about example? #5

Open
Airuibadi opened this issue Jan 21, 2019 · 1 comment
Open

Any description about example? #5

Airuibadi opened this issue Jan 21, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Airuibadi
Copy link

Can't figure out such highly abstract code in your example, some description would help ,at least some brief comment. Please.

@JT-Ushio JT-Ushio added the enhancement New feature or request label Jan 21, 2019
@JT-Ushio JT-Ushio self-assigned this Jan 21, 2019
@JT-Ushio
Copy link
Collaborator

JT-Ushio commented Jan 21, 2019

This PR provides a Code Example of what you need.
SingleTaskDataset class is a simple abstract of single-task dataset.
It has three parts: data_reader, Vocabulary and Counter
Just look at the following two files to understand how to use data IO.
Reader
Dataset builder
If you have a complicated way to build a batch, you can override the SingleTaskDataset.get_batches method.

Hope the code example can help you solve the problem.
ps. A more detailed documentation example is in our plan.

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

No branches or pull requests

2 participants