yahoo_answers_topics

Note

ID: catalog.cards.yahoo_answers_topics | Type: TaskCard

{
    "loader": {
        "path": "yahoo_answers_topics",
        "type": "load_hf"
    },
    "preprocess_steps": [
        {
            "mix": {
                "test": "test",
                "train": "train[87.5%]",
                "validation": "train[12.5%]"
            },
            "type": "split_random_mix"
        },
        {
            "field_to_field": {
                "topic": "label"
            },
            "type": "rename_fields"
        },
        {
            "mappers": {
                "label": {
                    "0": "Society & Culture",
                    "1": "Science & Mathematics",
                    "2": "Health",
                    "3": "Education & Reference",
                    "4": "Computers & Internet",
                    "5": "Sports",
                    "6": "Business & Finance",
                    "7": "Entertainment & Music",
                    "8": "Family & Relationships",
                    "9": "Politics & Government"
                }
            },
            "type": "map_instance_values"
        },
        {
            "fields": [
                "question_title",
                "question_content",
                "best_answer"
            ],
            "to_field": "text",
            "type": "list_field_values"
        },
        {
            "field": "text",
            "separator": " ",
            "to_field": "text",
            "type": "join_str"
        },
        {
            "fields": {
                "classes": [
                    "Society & Culture",
                    "Science & Mathematics",
                    "Health",
                    "Education & Reference",
                    "Computers & Internet",
                    "Sports",
                    "Business & Finance",
                    "Entertainment & Music",
                    "Family & Relationships",
                    "Politics & Government"
                ],
                "text_type": "text",
                "type_of_class": "topic"
            },
            "type": "add_fields"
        }
    ],
    "task": "tasks.classification.multi_class",
    "templates": "templates.classification.multi_class.all",
    "type": "task_card"
}