<commit_before># ethos

参考：

- [代码](https://github.com/huggingface/datasets/blob/master/datasets/ethos)
- [Huggingface](https://huggingface.co/datasets/ethos)

## binary

Use the following command to load this dataset in TFDS:

```python
ds = tfds.load('huggingface:ethos/binary')
```

- **Description**:

```

```

- **许可**：无已知许可
- **Version**: 1.0.0
- **拆分**：

拆分 | 样本
:-- | --:
`'train'` | 998

- **特征**：

```json
{
    "text": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "label": {
        "num_classes": 2,
        "names": [
            "no_hate_speech",
            "hate_speech"
        ],
        "names_file": null,
        "id": null,
        "_type": "ClassLabel"
    }
}
```

## multilabel

Use the following command to load this dataset in TFDS:

```python
ds = tfds.load('huggingface:ethos/multilabel')
```

- **Description**:

```

```

- **许可**：无已知许可
- **Version**: 1.0.0
- **拆分**：

拆分 | 样本
:-- | --:
`'train'` | 433<commit_msg>Translate ethos.md via GitLocalize<commit_after># ethos

参考：

- [代码](https://github.com/huggingface/datasets/blob/master/datasets/ethos)
- [Huggingface](https://huggingface.co/datasets/ethos)

## binary

使用以下命令在 TFDS 中加载此数据集：

```python
ds = tfds.load('huggingface:ethos/binary')
```

- **说明**：

```

```

- **许可**：无已知许可
- **版本**：1.0.0
- **拆分**：

拆分 | 样本
:-- | --:
`'train'` | 998

- **特征**：

```json
{
    "text": {
        "dtype": "string",
        "id": null,
        "_type": "Value"
    },
    "label": {
        "num_classes": 2,
        "names": [
            "no_hate_speech",
            "hate_speech"
        ],
        "names_file": null,
        "id": null,
        "_type": "ClassLabel"
    }
}
```

## multilabel

使用以下命令在 TFDS 中加载此数据集：

```python
ds = tfds.load('huggingface:ethos/multilabel')
```

- **说明**：

```

```

- **许可**：无已知许可
- **版本**：1.0.0
- **拆分**：

拆分 | 样本
:-- | --:
`'train'` | 433
{'fraction_non_alphanumeric': 0.23588390501319262, 'fraction_numerical': 0.013720316622691292, 'mean_word_length': 2.4039497307001794, 'pattern_counts': {'":': 20, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3747711', 'n_tokens_mistral': 896, 'n_tokens_neox': 859, 'n_words': 130}