-
Notifications
You must be signed in to change notification settings - Fork 36
Wip/translation api #806
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
base: master
Are you sure you want to change the base?
Wip/translation api #806
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,26 @@ export interface ExactMatcher { | |
| get(tokens : string[]) : string[][]|null; | ||
| } | ||
|
|
||
| export interface GenerationOptions { | ||
| num_beams ?: number | ||
| num_beam_groups ?: number | ||
| diversity_penalty ?: number | ||
| num_outputs ?: number | ||
| no_repeat_ngram_size ?: number | ||
| top_p ?: number | ||
| top_k ?: number | ||
| repetition_penalty ?: number | ||
| temperature ?: number | ||
| max_output_length ?: number | ||
| src_locale ?: string | ||
| tgt_locale ?: string | ||
| do_alignment ?: boolean | ||
| align_preserve_input_quotation ?: boolean | ||
| align_remove_output_quotation ?: boolean | ||
| translate_example_split ?: boolean | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need so many options? Seriously, let's cut this down to nothing, and we hardcode whatever is meaningful for Genie.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm ignoring "yagni" here cause I foresee using translation api for translating po and other stuff too so it's better to add support for modifying all generation args in genienlp right now once for all. |
||
| } | ||
|
|
||
|
|
||
| export interface ParseOptions { | ||
| thingtalk_version ?: string; | ||
| store ?: string; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.