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

config adapter old data handler helper #943

Closed

Conversation

Titousensei
Copy link
Contributor

Summary:
split remove_lmtask_deprecated to be able to re-use the code that
adapts most of old data handler parameters to new.

Differential Revision: D17123513

@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 9, 2019
Summary:
Pull Request resolved: facebookresearch#943

split remove_lmtask_deprecated to be able to re-use the code that
adapts most of old data handler parameters to new.

Reviewed By: hudeven

Differential Revision: D17123513

fbshipit-source-id: 6199d34dbea8a29e36d2d3f386ce9e230a2b4363
Titousensei added a commit to Titousensei/pytext that referenced this pull request Sep 10, 2019
Summary:
Pull Request resolved: facebookresearch#943

split remove_lmtask_deprecated to be able to re-use the code that
adapts most of old data handler parameters to new.

Reviewed By: hudeven

Differential Revision: D17123513

fbshipit-source-id: bbf79f19394403184e571d29ed37505a9685f343
Summary:
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: e2c4f022c4c2448b9eeca5c2ee684262b1879138
Summary:
Pull Request resolved: facebookresearch#943

split remove_lmtask_deprecated to be able to re-use the code that
adapts most of old data handler parameters to new.

Reviewed By: hudeven

Differential Revision: D17123513

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

This pull request has been merged in c56b826.

@Titousensei Titousensei deleted the export-D17123513 branch September 24, 2019 20:25
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.

2 participants