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

Numeric nlg postproc #1185

Merged
merged 22 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions prepare/cards/numeric_nlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
TaskCard,
)
from unitxt.catalog import add_to_catalog
from unitxt.templates import TemplatesList
from unitxt.test_utils.card import test_card

card = TaskCard(
Expand All @@ -25,8 +26,13 @@
Rename(field="caption", to_field="input_b"),
],
task="tasks.generation.from_pair",
templates="templates.generation.from_pair.all",
__description__="NumericNLG is a dataset for numerical table-to-text generation using pairs of a table and a paragraph of a table description with richer inference from scientific papers.",
templates=TemplatesList(
[
"templates.generation.from_pair.default[postprocessors=[processors.lower_case]]"
]
),
__description__="NumericNLG is a dataset for numerical table-to-text generation using pairs of a table and a "
"paragraph of a table description with richer inference from scientific papers.",
__tags__={
"modality": "table",
"urls": {"arxiv": "https://aclanthology.org/2021.acl-long.115/"},
Expand Down
7 changes: 6 additions & 1 deletion src/unitxt/catalog/cards/numeric_nlg.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
}
],
"task": "tasks.generation.from_pair",
"templates": "templates.generation.from_pair.all",
"templates": {
"__type__": "templates_list",
"items": [
"templates.generation.from_pair.default[postprocessors=[processors.lower_case]]"
]
},
"__description__": "NumericNLG is a dataset for numerical table-to-text generation using pairs of a table and a paragraph of a table description with richer inference from scientific papers.",
"__tags__": {
"modality": "table",
Expand Down
Loading