स्टीरियोसेट

सन्दर्भ:

अन्तर्विरोध

इस डेटासेट को TFDS में लोड करने के लिए निम्नलिखित कमांड का उपयोग करें:

ds = tfds.load('huggingface:stereoset/intersentence')
  • विवरण :
Stereoset is a dataset that measures stereotype bias in language models. Stereoset consists of 17,000 sentences that
measures model preferences across gender, race, religion, and profession.
  • लाइसेंस : CC BY-SA 4.0
  • संस्करण : 1.0.0
  • विभाजन :
विभाजित करना उदाहरण
'validation' 2123
  • विशेषताएँ :
{
    "id": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "target": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "bias_type": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "context": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "sentences": {
        "feature": {
            "sentence": {
                "dtype": "string",
                "id": null,
                "_type": "Value"
            },
            "id": {
                "dtype": "string",
                "id": null,
                "_type": "Value"
            },
            "labels": {
                "feature": {
                    "label": {
                        "num_classes": 4,
                        "names": [
                            "anti-stereotype",
                            "stereotype",
                            "unrelated",
                            "related"
                        ],
                        "names_file": null,
                        "id": null,
                        "_type": "ClassLabel"
                    },
                    "human_id": {
                        "dtype": "string",
                        "id": null,
                        "_type": "Value"
                    }
                },
                "length": -1,
                "id": null,
                "_type": "Sequence"
            },
            "gold_label": {
                "num_classes": 3,
                "names": [
                    "anti-stereotype",
                    "stereotype",
                    "unrelated"
                ],
                "names_file": null,
                "id": null,
                "_type": "ClassLabel"
            }
        },
        "length": -1,
        "id": null,
        "_type": "Sequence"
    }
}

अंतर्मुखता

इस डेटासेट को TFDS में लोड करने के लिए निम्नलिखित कमांड का उपयोग करें:

ds = tfds.load('huggingface:stereoset/intrasentence')
  • विवरण :
Stereoset is a dataset that measures stereotype bias in language models. Stereoset consists of 17,000 sentences that
measures model preferences across gender, race, religion, and profession.
  • लाइसेंस : CC BY-SA 4.0
  • संस्करण : 1.0.0
  • विभाजन :
विभाजित करना उदाहरण
'validation' 2106
  • विशेषताएँ :
{
    "id": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "target": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "bias_type": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "context": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "sentences": {
        "feature": {
            "sentence": {
                "dtype": "string",
                "id": null,
                "_type": "Value"
            },
            "id": {
                "dtype": "string",
                "id": null,
                "_type": "Value"
            },
            "labels": {
                "feature": {
                    "label": {
                        "num_classes": 4,
                        "names": [
                            "anti-stereotype",
                            "stereotype",
                            "unrelated",
                            "related"
                        ],
                        "names_file": null,
                        "id": null,
                        "_type": "ClassLabel"
                    },
                    "human_id": {
                        "dtype": "string",
                        "id": null,
                        "_type": "Value"
                    }
                },
                "length": -1,
                "id": null,
                "_type": "Sequence"
            },
            "gold_label": {
                "num_classes": 3,
                "names": [
                    "anti-stereotype",
                    "stereotype",
                    "unrelated"
                ],
                "names_file": null,
                "id": null,
                "_type": "ClassLabel"
            }
        },
        "length": -1,
        "id": null,
        "_type": "Sequence"
    }
}