Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

nicer gen_config_impl #944

Closed

Conversation

Titousensei
Copy link
Contributor

Summary: nicer internal API for gen_config_impl

Differential Revision: D17123234

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 29, 2019
Titousensei added a commit to Titousensei/pytext that referenced this pull request Sep 3, 2019
Summary:
Pull Request resolved: facebookresearch#944

nicer internal API for gen_config_impl

Differential Revision: D17123234

fbshipit-source-id: dc23e2b55be077cb06e5b56508d9f43b66719185
@Titousensei Titousensei force-pushed the export-D17123234 branch 2 times, most recently from fdf5ce1 to dfe773e Compare September 3, 2019 19:29
Titousensei added a commit to Titousensei/pytext that referenced this pull request Sep 9, 2019
Summary:
Pull Request resolved: facebookresearch#944

nicer internal API for gen_config_impl. You can now call
gen_config_impl() with args and kwargs, which is a better syntax than string
when calling from python. Since python parameter names can't contain ".",
you still need to use string in this case.

For example,

  cfg = gen_config_impl("LMTask", field_names=["text"])
  cfg = gen_config_impl("LMTask", "decoder.embed_dim=10")

Differential Revision: D17123234

fbshipit-source-id: db8dc572da5dfba42adde1bb2b66037a84a07414
Titousensei added a commit to Titousensei/pytext that referenced this pull request Sep 13, 2019
Summary:
Pull Request resolved: facebookresearch#944

nicer internal API for gen_config_impl. You can now call
gen_config_impl() with args and kwargs, which is a better syntax than string
when calling from python. Since python parameter names can't contain ".",
you still need to use string in this case.

For example,

  cfg = gen_config_impl("LMTask", field_names=["text"])
  cfg = gen_config_impl("LMTask", "decoder.embed_dim=10")

Differential Revision: D17123234

fbshipit-source-id: 0906ae089bd77476cabb623893816df737fba65e
Titousensei added a commit to Titousensei/pytext that referenced this pull request Sep 16, 2019
Summary:
Pull Request resolved: facebookresearch#944

nicer internal API for gen_config_impl. You can now call
gen_config_impl() with args and kwargs, which is a better syntax than string
when calling from python. Since python parameter names can't contain ".",
you still need to use string in this case.

For example,

  cfg = gen_config_impl("LMTask", field_names=["text"])
  cfg = gen_config_impl("LMTask", "decoder.embed_dim=10")

Differential Revision: D17123234

fbshipit-source-id: 8c98bce557f3abfe0226b390b226c06cf6636c03
Summary:
Pull Request resolved: facebookresearch#944

nicer internal API for gen_config_impl. You can now call
gen_config_impl() with args and kwargs, which is a better syntax than string
when calling from python. Since python parameter names can't contain ".",
you still need to use string in this case.

For example,

  cfg = gen_config_impl("LMTask", field_names=["text"])
  cfg = gen_config_impl("LMTask", "decoder.embed_dim=10")

Reviewed By: borguz

Differential Revision: D17123234

fbshipit-source-id: a7957746f6e58397c5dde01f6fe2fd9f5a7a8a97
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4de4840.

@Titousensei Titousensei deleted the export-D17123234 branch September 24, 2019 00:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants