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

add a checked parameter type in _maybe_load_yaml() #293

Open
wants to merge 1 commit into
base: master
from

Conversation

@studynon
Copy link

studynon commented Aug 31, 2017

In the examples of the official manual, there are some examples whose parameters maybe passed in as a list of dicts.
e.g. the "tasks" parameter in the following example,
In https://google.github.io/seq2seq/nmt/#decoding-with-beam-search,

python -m bin.infer \
  --tasks "
    - class: DecodeText
    - class: DumpBeams
      params:
        file: ${PRED_DIR}/beams.npz" \
  --model_dir $MODEL_DIR \
  --model_params "
    inference.beam_search.beam_width: 5" \
  --input_pipeline "
    class: ParallelTextInputPipeline
    params:
      source_files:
        - $DEV_SOURCES" \
  > ${PRED_DIR}/predictions.txt
In the examples of the official manual, there are some examples whose parameters maybe passed in as a list of dicts. 
e.g. the "tasks" parameter in the following example, 
In https://google.github.io/seq2seq/nmt/#decoding-with-beam-search,
python -m bin.infer \
  --tasks "
    - class: DecodeText
    - class: DumpBeams
      params:
        file: ${PRED_DIR}/beams.npz" \
  --model_dir $MODEL_DIR \
  --model_params "
    inference.beam_search.beam_width: 5" \
  --input_pipeline "
    class: ParallelTextInputPipeline
    params:
      source_files:
        - $DEV_SOURCES" \
  > ${PRED_DIR}/predictions.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.