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

Factored Segmenter does not output *.fsv file #5

Open
stribizhev opened this issue Jul 29, 2021 · 1 comment
Open

Factored Segmenter does not output *.fsv file #5

stribizhev opened this issue Jul 29, 2021 · 1 comment

Comments

@stribizhev
Copy link

stribizhev commented Jul 29, 2021

The output of the train command is an *.fsm file only.

How can I get *.fsv vocab file that is necessary to run a marian training?

More details

  • Tried on both Linux and Windows
  • The command to run the training:
time env LC_ALL=en_US.UTF-8 "$fspath" train \
    --model ${output_folder}/$projname.$src$tgt.joint.segmenter.fsm \
    --distinguish-initial-and-internal-pieces --single-letter-case-factors \
    --serialize-indices-and-unrepresentables --inline-fixes \
    --min-piece-count 38 --min-char-count 2 --vocab-size 8000 \
    ${corpus_file_path}
@stribizhev
Copy link
Author

The issue is resolved: the --marian-vocab option must be set. Example:

time env LC_ALL=en_US.UTF-8 "$factoredSegmentorPath" train \
  --model "${output_folder}"/fsmodel.fsm \
  --marian-vocab "${output_folder}"/fsmodel.fsv \
  --distinguish-initial-and-internal-pieces --single-letter-case-factors \
  --serialize-indices-and-unrepresentables --inline-fixes \
  --min-piece-count 38 --min-char-count 2 --vocab-size 8000 \
  "${corpus_file_path}"

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

1 participant