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

QUESTION: How to run on a different treebank corpus #20

Open
loretoparisi opened this issue Apr 28, 2016 · 1 comment
Open

QUESTION: How to run on a different treebank corpus #20

loretoparisi opened this issue Apr 28, 2016 · 1 comment

Comments

@loretoparisi
Copy link

How to run on a specific treebank text corpus, like Italian treebank corpus?
Thank you.

@tastyminerals
Copy link

Before running the corpus, you need to preprocess it in the same manner it is done for English.
Here is what your corpus should be:

  1. Single sentence per line.
  2. Lowercase.
  3. Strip punctuation (punctuation decreases perplexity skewing the results, so I'd rather remove it).
  4. Replace singleton words with <unk> label.
  5. Replace each digit with N or 0.

Split your training corpus into ptp.train.txt, ptp.test.txt and ptp.valid.txt, where ptp.test.txt and ptp.valid.txt are 5% each of ptp.train.txt size.

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

2 participants