spaCy convert on a directory instead of a file? #9349
Answered
by
danieldk
demongolem-biz
asked this question in
Help: Coding & Implementations
-
I just wanted to know if it is possible to use the |
Beta Was this translation helpful? Give feedback.
Answered by
danieldk
Oct 1, 2021
Replies: 1 comment
-
Thank you for your question! $ ls conllu_dir
nl_lassysmall-ud-dev.conllu
nl_lassysmall-ud-test.conllu
nl_lassysmall-ud-train.conllu
$ mkdir output_dir
$ spacy convert conllu_dir output_dir
ℹ Grouping every 1 sentences into a document.
⚠ To generate better training data, you may want to group sentences
into documents with `-n 10`.
✔ Generated output file (676 documents):
output_dir/nl_lassysmall-ud-dev.spacy
ℹ Grouping every 1 sentences into a document.
⚠ To generate better training data, you may want to group sentences
into documents with `-n 10`.
✔ Generated output file (876 documents):
output_dir/nl_lassysmall-ud-test.spacy
ℹ Grouping every 1 sentences into a document.
⚠ To generate better training data, you may want to group sentences
into documents with `-n 10`.
✔ Generated output file (5789 documents):
output_dir/nl_lassysmall-ud-train.spacy
$ ls output_dir
nl_lassysmall-ud-dev.spacy
nl_lassysmall-ud-test.spacy
nl_lassysmall-ud-train.spacy |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
svlandeg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for your question!
spacy convert
can convert a directory of corpus files, as long as they have the same type. For example: