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

Raml Text Reader and SwitchOut config file #535

Merged
merged 14 commits into from
Oct 11, 2018
Merged

Raml Text Reader and SwitchOut config file #535

merged 14 commits into from
Oct 11, 2018

Conversation

cindyxinyiwang
Copy link
Contributor

A TextReader that implements raml sampling, and a config file that uses RamlTextReader for both source and target.

Copy link
Contributor

@msperber msperber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good and well integrated, but I'm wondering if you could add a few more sentences to the comments? E.g. the relationship between Switch Out and RAML (in the config file), and that this is (I assume) the Hamming-distance variant of RAML (in the Python code).

Args:
tau: The temperature that controls peakiness of the sampling distribution
vocab: The vocabulary
include_vocab_reference: Whether to include the vocab with the input
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems outdated.

@msperber
Copy link
Contributor

Thanks!

@msperber msperber merged commit 94072bc into master Oct 11, 2018
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

Successfully merging this pull request may close these issues.

2 participants