Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception:    SplitsNotFoundError
Message:      The split names could not be parsed from the dataset config.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
                  for split_generator in builder._split_generators(
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/harbor/harbor.py", line 171, in _split_generators
                  raise DataFilesNotFoundError("No task.toml or instruction.md files found")
              datasets.exceptions.DataFilesNotFoundError: No task.toml or instruction.md files found
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 68, in compute_split_names_from_streaming_response
                  for split in get_dataset_split_names(
                               ~~~~~~~~~~~~~~~~~~~~~~~^
                      path=dataset,
                      ^^^^^^^^^^^^^
                      config_name=config,
                      ^^^^^^^^^^^^^^^^^^^
                      token=hf_token,
                      ^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
                  info = get_dataset_config_info(
                      path,
                  ...<6 lines>...
                      **config_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
                  raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
              datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

hpprc/janli(複製)

データの内容

日本語の言語現象を問う、敵対的な自然言語推論(NLI)のデータ。1 行が 1 組の文で、base 版では premise(前提)、hypothesis(仮説)、含意か非含意かを示す label が入る。heuristics と semtag で、試している言語現象の種類が分かる。英語の HANS に着想を得て作られ、JaNLI の論文(BlackboxNLP 2021)で公開された。

データの概要

項目 値
行数 28,800(2 構成・4 分割の合計)
列数 7
容量 146.98 KB(ファイル 5 本)
ファイルの形式 py 1、lock 1、toml 1
言語 ja
公開 public

構成と分割

構成(config) 分割(split)ごとの行数 列数
base train 13,680、test 720 7
original train 13,680、test 720 7

列(構成 base・分割 train。構成ごとに列が違う)

列 型 先頭の行の値
id int64 0
premise string 学生がフットボール選手をたたいている
hypothesis string フットボール選手を学生がたたいている
label class_label(2: entailment, non-entailment) 0
heuristics string overlap-full
number_of_NPs int32 2
semtag string scrambling

行数と列は HF のデータセットビューアの集計(元のデータセットの現在の版で数えたもの)。全データセットの一覧は HYUKI5/dataset-catalog にある。

複製について

hpprc/janli をリビジョン b91923216e61ded52ec77316cb329b47227e4955 の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(convaiinnovations/laya)の微調整に使う候補として、調査メモ(Laya 学習用データセット調査)に載せたデータを集めている。

出典

論文

アノテーションの方法

アノテーション

この日本語 NLI データセットのアノテーション過程では、前提と仮説の各ペア(P, H)に、構造パターンと言語現象のラベルを付与する。 前提文と仮説文の構造的関係は 5 つのパターンに分類され、各パターンには、含意関係の誤った予測につながりうるヒューリスティクスの種類が対応づけられている。 さらに、敵対的推論の 5 つのパターンを生成するために、日本語の言語現象と構文の 11 のカテゴリーに焦点を当てている。

言語現象ごとに、前提文 P のテンプレートは 1 つに固定され、仮説文 H のテンプレートは複数作成される。 合計で (P, H) ペアのテンプレートが 144 作成される。 前提文と仮説文の各ペアには、含意ラベル(entailment または non-entailment)、構造パターン、言語現象のラベルが付与される。

JaNLI データセットは、各テンプレートを 100 回インスタンス化して生成され、合計 14,400 件の例となる。 言語現象ごとに、entailment の例と non-entailment の例を同数ずつ生成する。 構造パターンは言語現象ごとのテンプレートに対してアノテーションされ、パターンごとの entailment と non-entailment の例の比率は必ずしも 1:1 ではない。 このデータセットでは、JSICK と JSNLI のデータセットに 20 回を超えて出現する、合計 158 語(名詞と動詞)を使用している。

微調整に使うときの注意

  • 調査メモの台帳での区分: B(継承条件・gated・モデル由来の条件・上流の規約などが付く)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
  • Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
  • 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。

調査メモの記述

メモ 節 ライセンス(記載) 確認 注記
multilingual_cjk.md 2. 日本語データセット (L105) cc-by-sa-4.0 確認済 確認印なし(各ファイルの凡例により確認済扱い) / 原文注記: script同梱(janli.py)。敵対的 NLI(llm-jp-eval DATASET.md)

元のカード(日本語訳)

以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。


JaNLI のデータセットカード

目次

  • JaNLI のデータセットカード
    • 目次
    • データセットの説明
      • データセットの概要
      • 言語
    • データセットの構造
      • データの例
        • base
        • original
      • データフィールド
        • base
        • original
      • データ分割
      • アノテーション
    • 追加情報
      • ライセンス情報
      • 引用情報
      • 貢献

データセットの説明

データセットの概要

JaNLI(Japanese Adversarial NLI)データセットは、英語の HANS データセットに着想を得たものであり、日本語の言語現象の理解を必要とさせ、モデルの脆弱性を明らかにするために設計されている。

言語

JaNLI の言語データは日本語(BCP-47 ja-JP)である。

データセットの構造

データの例

特定の構成を読み込むときは、バージョンに依存する接尾辞を付ける必要がある:

import datasets as ds

dataset: ds.DatasetDict = ds.load_dataset("hpprc/janli")
print(dataset)
# DatasetDict({
#     train: Dataset({
#         features: ['id', 'premise', 'hypothesis', 'label', 'heuristics', 'number_of_NPs', 'semtag'],
#         num_rows: 13680
#     })
#     test: Dataset({
#         features: ['id', 'premise', 'hypothesis', 'label', 'heuristics', 'number_of_NPs', 'semtag'],
#         num_rows: 720
#     })
# })

dataset: ds.DatasetDict = ds.load_dataset("hpprc/janli", name="original")
print(dataset)
# DatasetDict({
#     train: Dataset({
#         features: ['id', 'sentence_A_Ja', 'sentence_B_Ja', 'entailment_label_Ja', 'heuristics', 'number_of_NPs', 'semtag'],
#         num_rows: 13680
#     })
#     test: Dataset({
#         features: ['id', 'sentence_A_Ja', 'sentence_B_Ja', 'entailment_label_Ja', 'heuristics', 'number_of_NPs', 'semtag'],
#         num_rows: 720
#     })
# })

base

例は次のとおりである:

{
  'id': 12,
  'premise': '若者がフットボール選手を見ている',
  'hypothesis': 'フットボール選手を若者が見ている',
  'label': 0,
  'heuristics': 'overlap-full',
  'number_of_NPs': 2,
  'semtag': 'scrambling'
}

original

例は次のとおりである:

{
  'id': 12,
  'sentence_A_Ja': '若者がフットボール選手を見ている',
  'sentence_B_Ja': 'フットボール選手を若者が見ている',
  'entailment_label_Ja': 0,
  'heuristics': 'overlap-full',
  'number_of_NPs': 2,
  'semtag': 'scrambling'
}

データフィールド

base

一般的な NLI データセットの列名を採用したバージョンである。

名前 説明
id 文ペアの番号。
premise 前提(sentence_A_Ja)。
hypothesis 仮説(sentence_B_Ja)。
label 文ペアの正解ラベル(entailment または non-entailment)。論文に記された設定では、non-entailment は neutral と contradiction を合わせたものである(entailment_label_Ja)。
heuristics ヒューリスティクス(構造パターン)のタグ。タグは subsequence、constituent、full-overlap、order-subset、mixed-subset である。
number_of_NPs 文に含まれる名詞句の数。
semtag 言語現象のタグ。

original

列名を変更せずに残した元のバージョンである。

名前 説明
id 文ペアの番号。
sentence_A_Ja 前提。
sentence_B_Ja 仮説。
entailment_label_Ja この文ペアの正解ラベル(entailment または non-entailment)。論文に記された設定では、non-entailment は neutral と contradiction を合わせたものである
heuristics ヒューリスティクス(構造パターン)のタグ。タグは subsequence、constituent、full-overlap、order-subset、mixed-subset である。
number_of_NPs 文に含まれる名詞句の数。
semtag 言語現象のタグ。

データ分割

name train validation test
base 13,680 720
original 13,680 720

アノテーション

この日本語 NLI データセットのアノテーション過程では、前提と仮説の各ペア(P, H)に、構造パターンと言語現象のラベルを付与する。 前提文と仮説文の構造的関係は 5 つのパターンに分類され、各パターンには、含意関係の誤った予測につながりうるヒューリスティクスの種類が対応づけられている。 さらに、敵対的推論の 5 つのパターンを生成するために、日本語の言語現象と構文の 11 のカテゴリーに焦点を当てている。

言語現象ごとに、前提文 P のテンプレートは 1 つに固定され、仮説文 H のテンプレートは複数作成される。 合計で (P, H) ペアのテンプレートが 144 作成される。 前提文と仮説文の各ペアには、含意ラベル(entailment または non-entailment)、構造パターン、言語現象のラベルが付与される。

JaNLI データセットは、各テンプレートを 100 回インスタンス化して生成され、合計 14,400 件の例となる。 言語現象ごとに、entailment の例と non-entailment の例を同数ずつ生成する。 構造パターンは言語現象ごとのテンプレートに対してアノテーションされ、パターンごとの entailment と non-entailment の例の比率は必ずしも 1:1 ではない。 このデータセットでは、JSICK と JSNLI のデータセットに 20 回を超えて出現する、合計 158 語(名詞と動詞)を使用している。

追加情報

ライセンス情報

CC BY-SA 4.0

引用情報

@InProceedings{yanaka-EtAl:2021:blackbox,
  author    = {Yanaka, Hitomi and Mineshima, Koji},
  title     = {Assessing the Generalization Capacity of Pre-trained Language Models through Japanese Adversarial Natural Language Inference},
  booktitle = {Proceedings of the 2021 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP (BlackboxNLP2021)},
  url       = {https://aclanthology.org/2021.blackboxnlp-1.26/},
  year      = {2021},
}

貢献

このデータセットを作成してくれた Hitomi Yanaka と Koji Mineshima に感謝する。

原文(英語)

Dataset Card for JaNLI

Dataset Summary

The JaNLI (Japanese Adversarial NLI) dataset, inspired by the English HANS dataset, is designed to necessitate an understanding of Japanese linguistic phenomena and to illuminate the vulnerabilities of models.

Languages

The language data in JaNLI is in Japanese (BCP-47 ja-JP).

Dataset Structure

Data Instances

When loading a specific configuration, users has to append a version dependent suffix:

import datasets as ds

dataset: ds.DatasetDict = ds.load_dataset("hpprc/janli")
print(dataset)
# DatasetDict({
#     train: Dataset({
#         features: ['id', 'premise', 'hypothesis', 'label', 'heuristics', 'number_of_NPs', 'semtag'],
#         num_rows: 13680
#     })
#     test: Dataset({
#         features: ['id', 'premise', 'hypothesis', 'label', 'heuristics', 'number_of_NPs', 'semtag'],
#         num_rows: 720
#     })
# })

dataset: ds.DatasetDict = ds.load_dataset("hpprc/janli", name="original")
print(dataset)
# DatasetDict({
#     train: Dataset({
#         features: ['id', 'sentence_A_Ja', 'sentence_B_Ja', 'entailment_label_Ja', 'heuristics', 'number_of_NPs', 'semtag'],
#         num_rows: 13680
#     })
#     test: Dataset({
#         features: ['id', 'sentence_A_Ja', 'sentence_B_Ja', 'entailment_label_Ja', 'heuristics', 'number_of_NPs', 'semtag'],
#         num_rows: 720
#     })
# })

base

An example of looks as follows:

{
  'id': 12,
  'premise': '若者がフットボール選手を見ている',
  'hypothesis': 'フットボール選手を若者が見ている',
  'label': 0,
  'heuristics': 'overlap-full',
  'number_of_NPs': 2,
  'semtag': 'scrambling'
}

original

An example of looks as follows:

{
  'id': 12,
  'sentence_A_Ja': '若者がフットボール選手を見ている',
  'sentence_B_Ja': 'フットボール選手を若者が見ている',
  'entailment_label_Ja': 0,
  'heuristics': 'overlap-full',
  'number_of_NPs': 2,
  'semtag': 'scrambling'
}

Data Fields

base

A version adopting the column names of a typical NLI dataset.

Name Description
id The number of the sentence pair.
premise The premise (sentence_A_Ja).
hypothesis The hypothesis (sentence_B_Ja).
label The correct label for the sentence pair (either entailment or non-entailment); in the setting described in the paper, non-entailment = neutral + contradiction (entailment_label_Ja).
heuristics The heuristics (structural pattern) tag. The tags are: subsequence, constituent, full-overlap, order-subset, and mixed-subset.
number_of_NPs The number of noun phrase in a sentence.
semtag The linguistic phenomena tag.

original

The original version retaining the unaltered column names.

Name Description
id The number of the sentence pair.
sentence_A_Ja The premise.
sentence_B_Ja The hypothesis.
entailment_label_Ja The correct label for this sentence pair (either entailment or non-entailment); in the setting described in the paper, non-entailment = neutral + contradiction
heuristics The heuristics (structural pattern) tag. The tags are: subsequence, constituent, full-overlap, order-subset, and mixed-subset.
number_of_NPs The number of noun phrase in a sentence.
semtag The linguistic phenomena tag.

Data Splits

name train validation test
base 13,680 720
original 13,680 720

Annotations

The annotation process for this Japanese NLI dataset involves tagging each pair (P, H) of a premise and hypothesis with a label for structural pattern and linguistic phenomenon. The structural relationship between premise and hypothesis sentences is classified into five patterns, with each pattern associated with a type of heuristic that can lead to incorrect predictions of the entailment relation. Additionally, 11 categories of Japanese linguistic phenomena and constructions are focused on for generating the five patterns of adversarial inferences.

For each linguistic phenomenon, a template for the premise sentence P is fixed, and multiple templates for hypothesis sentences H are created. In total, 144 templates for (P, H) pairs are produced. Each pair of premise and hypothesis sentences is tagged with an entailment label (entailment or non-entailment), a structural pattern, and a linguistic phenomenon label.

The JaNLI dataset is generated by instantiating each template 100 times, resulting in a total of 14,400 examples. The same number of entailment and non-entailment examples are generated for each phenomenon. The structural patterns are annotated with the templates for each linguistic phenomenon, and the ratio of entailment and non-entailment examples is not necessarily 1:1 for each pattern. The dataset uses a total of 158 words (nouns and verbs), which occur more than 20 times in the JSICK and JSNLI datasets.

Additional Information

Licensing Information

CC BY-SA 4.0

Citation Information

@InProceedings{yanaka-EtAl:2021:blackbox,
  author    = {Yanaka, Hitomi and Mineshima, Koji},
  title     = {Assessing the Generalization Capacity of Pre-trained Language Models through Japanese Adversarial Natural Language Inference},
  booktitle = {Proceedings of the 2021 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP (BlackboxNLP2021)},
  url       = {https://aclanthology.org/2021.blackboxnlp-1.26/},
  year      = {2021},
}

Contributions

Thanks to Hitomi Yanaka and Koji Mineshima for creating this dataset.

Downloads last month
86