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

Making Dataset for Bengali Language #31

Open
PrithwirajRizu opened this issue Jul 16, 2019 · 2 comments
Open

Making Dataset for Bengali Language #31

PrithwirajRizu opened this issue Jul 16, 2019 · 2 comments

Comments

@PrithwirajRizu
Copy link

I have two files in Bengali. article.txt, and summary.txt. Now how can I convert it to corresponding train.bin, val.bin, test.bin? I just couldn't understand how to process my Bengali corpus for this summarization process. Thanks in advance.

@sagorbrur
Copy link

Hi @PrithwirajRizu
Your story should be like this.

article = open('article.txt', 'r').read()
summary = open('summary.txt', 'r').read()

story = article + '\n\n' + '@highlight'+'\n'+summary 

Then follow this to generate train or test data.

@senjed
Copy link

senjed commented Jun 16, 2020

Hi @PrithwirajRizu
Your story should be like this.

article = open('article.txt', 'r').read()
summary = open('summary.txt', 'r').read()

story = article + '\n\n' + '@highlight'+'\n'+summary 

Then follow this to generate train or test data.

I guess each sentence of the summary should be in a separate line and separated by the "@highlight" tag

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

No branches or pull requests

3 participants