ryo0634 commited on
Commit
4cc3a05
1 Parent(s): c1e3f43

initial commit

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - image-to-text
4
+ - text2text-generation
5
+ language:
6
+ - ja
7
+ ---
8
+
9
+ ## 読み込み方
10
+ ```python
11
+ from datasets import load_dataset
12
+
13
+ dataset = load_dataset("YANS-official/ogiri-test", split="test")
14
+ ```
15
+
16
+ ## 概要
17
+ 大喜利投稿サイトBoketeのクロールデータです。
18
+ 元データは CLoT-Oogiri-Go [Zhang+ CVPR2024]というデータの一部です。
19
+ 詳細は[CVPRのプロジェクトページ](https://zhongshsh.github.io/CLoT/)をご確認ください。
20
+
21
+ このデータは以下の3タスクが含まれます。
22
+
23
+ * text_to_text: テキストでお題が渡され、それに対する回答を返します。
24
+ * image_to_text: いわゆる「画像で一言」です。画像のみが渡されて、テキストによる回答を返します。
25
+ * text_image_to_text: 画像中にテキストが書かれています。テキストの一部が空欄になっているので、そこに穴埋めする形で回答を返します。
26
+
27
+ それぞれの量は以下の通りです。
28
+ | タスク | お題数(画像枚数) | 回答数 |
29
+ | --- | ---: | ---: |
30
+ | image_to_text | 56 | 112 |
31
+ | text_to_text | 22 | 44 |
32
+ | imate_text_to_text | 22 | 44 |
33
+
34
+ ## データの前処理
35
+
36
+ 1. 原本のデータには日英中の3言語が含まれますが、日本語だけを抽出しました。
37
+ 2. 入力にテキストがあるタスク(text_to_textとimage_text_to_text)は、入力テキストも画像化されていたため、OCRを行いました。詳細は下に記載します。
38
+ 3. 入出力テキスト(回答とステップ2のOCR結果)から、不適切な表現を含む文を削除。フィルタリングには HojiChar [[リンク](https://github.com/HojiChar/HojiChar)] を用いました。
39
+ 4. ステップ3で全ての回答が消えたお題や、お題自体に不適切表現が含まれる場合はお題とその画像を削除
40
+ 5. 残ったお題に対して回答が10件以上ある場合は、スコアが高い順に2件を残して削除。下位の回答が見るに耐えないので、上から2件とした。
41
+
42
+ HojiCharで使ったフィルタは以下の通りです。
43
+ * hojichar.document_filters.DiscardAdultContentJa()
44
+ * hojichar.document_filters.DiscardAdultContentEn()
45
+ * hojichar.document_filters.DiscardViolenceContentJa()
46
+ * hojichar.document_filters.DiscardDiscriminationContentJa()
47
+ * hojichar.document_filters.DocumentLengthFilter(min_doc_len=0, max_doc_len=100)
48
+
49
+ ### OCR
50
+ 2024年07月21日に、OpenAI APIの gpt-4oに画像と下記プロンプトを与えてOCRを実行しました。
51
+ image_text_to_text では画像中に穴埋め用の空欄が用意されていますので、GPTで検出できた場合は "[空欄]" として出力させています。テストデータ(このデータ)では、OCR誤りの有無を人力で調べて修正しています。
52
+
53
+ > この画像から文字起こししてください。画像中の文字以外の情報は書かないでください。1文字もない場合は [なし] を返してください。空欄になっている部分は特殊記号 [空欄] で置き換えてください。
54
+
55
+
56
+
57
+ ## データセットの各カラム説明
58
+ | カラム名 | 型 | 例 | 概要 |
59
+ | --- | --- | --- | --- |
60
+ | odai_id | int | 85 | お題のID |
61
+ | image | int | 6094670 | 画像のID。それぞれ"{image}.jpg"という画像に対応している。 |
62
+ | type | str | "text_to_text" | "text_to_text", "image_to_text", "image_text_to_text"のどれかが入っている。|
63
+ | odai | str | "ボケてあるあるを教えてください。" | "image_to_text"の場合は"画像で一言"という文字列が格納されている。そのほかの場合は画像からOCRした結果が格納されている。 |
64
+
65
+ ## ライセンス
66
+ 元データにしたCLoTの[HuggingFace Hub](https://huggingface.co/datasets/zhongshsh/CLoT-Oogiri-GO)には以下のような記載があります。
67
+
68
+ > License: Creative Commons Attribution 4.0 International. We also adhere to the terms of use from any of the data sources, such as Bokete and Zhihu. If you have any concerns regarding this dataset, especially if you believe it infringes upon your legal rights, please feel free to contact us. We will promptly review any issues raised and respond accordingly.
69
+
70
+ Boketeの規約上は問題ないと思われますが、BoketeのユーザがBoketeにアップロードした画像は著作権上問題がありそうなものが散見されます。
71
+ このハッカソン以外で用いる場合はZhangらの原本を各自でクリーニングして用いることを勧めます。
72
+
73
+ ## リファレンス
74
+
75
+ * @misc{zhong2023clot,
76
+ title={Let's Think Outside the Box: Exploring Leap-of-Thought in Large Language Models with Creative Humor Generation},
77
+ author={Zhong, Shanshan and Huang, Zhongzhan and Gao, Shanghua and Wen, Weushao and Lin, Liang and Zitnik, Marinka and Zhou, Pan},
78
+ journal={arXiv preprint arXiv:2312.02439},
79
+ year={2023}
80
+ }
81
+ * Shinzato, K. (2023). HojiChar: The text processing pipeline (Version 0.9.0) [Computer software]. https://github.com/HojiChar/HojiChar
test/1263510.jpg ADDED

Git LFS Details

  • SHA256: 5dfa87ddd38dde9bf9264aa0743d5b422a5a1a64fa471c0e6a1bb9d4af25e979
  • Pointer size: 130 Bytes
  • Size of remote file: 15.3 kB
test/1306191.jpg ADDED

Git LFS Details

  • SHA256: 3ebcb22394594bdf975370a80d05f564ce4fee36a8f0e513413bc273089a16dc
  • Pointer size: 129 Bytes
  • Size of remote file: 7.01 kB
test/1513011.jpg ADDED

Git LFS Details

  • SHA256: 7a8d2fc751f8eef1064242e5d393b5a649cbc0edbcb03aa1bf87567f05db2134
  • Pointer size: 130 Bytes
  • Size of remote file: 27.8 kB
test/1576313.jpg ADDED

Git LFS Details

  • SHA256: 309bdb811f4c038030c82b30ab74d0f2d6e7dbe185767473938398a83b7385a1
  • Pointer size: 130 Bytes
  • Size of remote file: 14.3 kB
test/1579605.jpg ADDED

Git LFS Details

  • SHA256: 687beca24668c5ffb47bd23647eb3fbf720d14003e55c0ab72193ff28a5854cf
  • Pointer size: 130 Bytes
  • Size of remote file: 28 kB
test/1593016.jpg ADDED

Git LFS Details

  • SHA256: 571adbfc978116b1c6aab1ac7f57f8376b3768628cfe69a3d4c7ca1d84eea54b
  • Pointer size: 130 Bytes
  • Size of remote file: 57 kB
test/1616268.jpg ADDED

Git LFS Details

  • SHA256: ccebc0ce9c1cc0d565919ce4942801988bcaa83a3131d51831ceef578e428b71
  • Pointer size: 130 Bytes
  • Size of remote file: 52.3 kB
test/1638015.jpg ADDED

Git LFS Details

  • SHA256: bd4da8ab3a8fb96e9d3570a928f6cb4a2486a3a637af7ab341ffe7dfa331cee7
  • Pointer size: 130 Bytes
  • Size of remote file: 29.7 kB
test/1663964.jpg ADDED

Git LFS Details

  • SHA256: ad24f6d70c393f8ba043f4fe61c83d3c0137628ff6e92b160108d59e608a1a1f
  • Pointer size: 130 Bytes
  • Size of remote file: 35.1 kB
test/1667343.jpg ADDED

Git LFS Details

  • SHA256: fd0bcfc1520d039c266d06db75293ecac3b48e8d6ac6bfa73351ae07d009014e
  • Pointer size: 130 Bytes
  • Size of remote file: 33 kB
test/1680548.jpg ADDED

Git LFS Details

  • SHA256: 01695b6fe433e7f36cba322427e4292ac718c8e7637c034f52431481beca900d
  • Pointer size: 130 Bytes
  • Size of remote file: 29.3 kB
test/173284.jpg ADDED

Git LFS Details

  • SHA256: defc0b5f890632d0f6f1cebb3f883ea5a294d21365a71aeb6ea741c1e982b5ba
  • Pointer size: 130 Bytes
  • Size of remote file: 23.2 kB
test/1756738.jpg ADDED

Git LFS Details

  • SHA256: dcee65bbc2e2613722bc307927347dead5cfd0e0765b7a1284835c917627d810
  • Pointer size: 130 Bytes
  • Size of remote file: 30.9 kB
test/1777923.jpg ADDED

Git LFS Details

  • SHA256: 34ba3f5ec2c437203c69ee557a46798935c0efd620a98435da09f3bb5c500961
  • Pointer size: 130 Bytes
  • Size of remote file: 28.7 kB
test/1938736.jpg ADDED

Git LFS Details

  • SHA256: 4c23d19387e976a7af6775699137631475957cae2b7a22f39f5ca4716fccea7d
  • Pointer size: 130 Bytes
  • Size of remote file: 44.6 kB
test/2024090401.jpg ADDED

Git LFS Details

  • SHA256: f6c206860f3e6b7212efd0704083dd51e505eacb79b192773d462001e8832e3a
  • Pointer size: 130 Bytes
  • Size of remote file: 99.6 kB
test/2024090402.jpg ADDED

Git LFS Details

  • SHA256: 75744ba87a97493f0621d8ca3a89929c7e33f373fb852cb490814d5de25dcce5
  • Pointer size: 130 Bytes
  • Size of remote file: 87.6 kB
test/2024090403.jpg ADDED

Git LFS Details

  • SHA256: 8c20832cfd22c19050e0625cbf521b079465aceb066e7adf8b501e56311c46c3
  • Pointer size: 131 Bytes
  • Size of remote file: 747 kB
test/2024090404.jpg ADDED

Git LFS Details

  • SHA256: 51d304c118b8d930c002a9753fe35d7d72b6bec8c9f81cedb26031d84696d4db
  • Pointer size: 131 Bytes
  • Size of remote file: 455 kB
test/2024090405.jpg ADDED

Git LFS Details

  • SHA256: aa9ec204c31516d2fcb49053d0db0f8236205ff3b58d215541d852a593aaead6
  • Pointer size: 131 Bytes
  • Size of remote file: 558 kB
test/2024090406.jpg ADDED

Git LFS Details

  • SHA256: 9f9d76439563c4c17fb0a973661eb7129ce28ce6b35a0e3137933eb7e71e7dc0
  • Pointer size: 131 Bytes
  • Size of remote file: 127 kB
test/2024090407.jpg ADDED

Git LFS Details

  • SHA256: 2a6ff3f1d65f3d68fd581d098d572b54b4e88e09a0e4685fe8749b76c256393d
  • Pointer size: 130 Bytes
  • Size of remote file: 24.3 kB
test/2024090408.jpg ADDED

Git LFS Details

  • SHA256: 3bda0129c22f21ec0f8eba63722cfdd4dec53618671c9afb84e198e0f4f25bd3
  • Pointer size: 130 Bytes
  • Size of remote file: 31.2 kB
test/2024090409.jpg ADDED

Git LFS Details

  • SHA256: 5646870ab1c33fd59b1ab2fdd4da57f7cc0ff2aab27e736551c185ccf2575df0
  • Pointer size: 131 Bytes
  • Size of remote file: 127 kB
test/2024090410.jpg ADDED

Git LFS Details

  • SHA256: d102ddec8c0656c44b90990984f60a026b518234b62de2d8b66a2ed3e6b2da22
  • Pointer size: 131 Bytes
  • Size of remote file: 145 kB
test/2073768.jpg ADDED

Git LFS Details

  • SHA256: beb34d0bfa4ade12cc92db064836a94244084e30d07ed2430032ac657e7744b2
  • Pointer size: 130 Bytes
  • Size of remote file: 47.2 kB
test/2314426.jpg ADDED

Git LFS Details

  • SHA256: 2c8b7e6335b80d27be26a97dcba597d5ca4654b5af6ac11c5b390075cdbac18d
  • Pointer size: 130 Bytes
  • Size of remote file: 28.9 kB
test/2619457.jpg ADDED

Git LFS Details

  • SHA256: ef35c34c4fcecba295b1dcc393fda0e2a27d2e691c08a54569ab5cb013b7751c
  • Pointer size: 130 Bytes
  • Size of remote file: 54.1 kB
test/2652567.jpg ADDED

Git LFS Details

  • SHA256: ae828be5daf481bb59f90caefd7e10f176c5a3ade3ee04f1ddcd0e756f0d2d39
  • Pointer size: 130 Bytes
  • Size of remote file: 22.1 kB
test/2684943.jpg ADDED

Git LFS Details

  • SHA256: 6ed5559b3c68b888ba8e5ecb752836cd24715d294e6980a21341484bfa65fddd
  • Pointer size: 130 Bytes
  • Size of remote file: 30.5 kB
test/2810296.jpg ADDED

Git LFS Details

  • SHA256: 5c5650a71ea080c5d15995b2f07770626604d59bfde5736225bf7bdf677ca417
  • Pointer size: 130 Bytes
  • Size of remote file: 31.7 kB
test/2861591.jpg ADDED

Git LFS Details

  • SHA256: a9dad94aae36512be9d23a052e562ccde5b2a66b220f6cce62e5d2e52d57e527
  • Pointer size: 130 Bytes
  • Size of remote file: 17.6 kB
test/289676.jpg ADDED

Git LFS Details

  • SHA256: 7d0c1f61e0819ae0dee837ac79fbb6f9c5997083c0e1586457a97ff4102a6f7e
  • Pointer size: 130 Bytes
  • Size of remote file: 37.1 kB
test/2967373.jpg ADDED

Git LFS Details

  • SHA256: 8f809cf14c3d15a020eb2dcfbdf0f0fe7734e58d04e3ca2758031d36ce6e16de
  • Pointer size: 130 Bytes
  • Size of remote file: 29.3 kB
test/3122375.jpg ADDED

Git LFS Details

  • SHA256: 8848a2df7d6a1ed6a9ef32a31dc2bdbcf999d70ed0a587feeb7b5fca5d588ea0
  • Pointer size: 130 Bytes
  • Size of remote file: 34.1 kB
test/3133829.jpg ADDED

Git LFS Details

  • SHA256: 1acab2e0eca1f44f37873cf2684f17bd357362eba8bbdae8081287a624c9c80c
  • Pointer size: 130 Bytes
  • Size of remote file: 47.1 kB
test/3205954.jpg ADDED

Git LFS Details

  • SHA256: 3a309d3254f14840c95e168e0cf39247ebf5fb36389df095bf1ae20304b43ed3
  • Pointer size: 130 Bytes
  • Size of remote file: 33.4 kB
test/3361785.jpg ADDED

Git LFS Details

  • SHA256: 8ac1e363549cb94292e13f07453d599749fffe6f6fb8353e1a0b87e76bec2259
  • Pointer size: 130 Bytes
  • Size of remote file: 40.1 kB
test/3390883.jpg ADDED

Git LFS Details

  • SHA256: 7ea1c8581e71ba4aeadb88f4e8fb8f43de18e3669987eaeb6d55454549027591
  • Pointer size: 131 Bytes
  • Size of remote file: 103 kB
test/3397134.jpg ADDED

Git LFS Details

  • SHA256: 908696fca0d8db028fa87b06739ca796afaea9c4847eae04776858180847e02e
  • Pointer size: 130 Bytes
  • Size of remote file: 14.4 kB
test/3455519.jpg ADDED

Git LFS Details

  • SHA256: e6a778149ef3d97bceb70799df2dde13f9dfa2354845192feea6d8438b48ccdf
  • Pointer size: 130 Bytes
  • Size of remote file: 21.3 kB
test/353957.jpg ADDED

Git LFS Details

  • SHA256: 76b119fb4c3243190e9fda19641edae87955088044e23bb70eceead3d19c91a6
  • Pointer size: 130 Bytes
  • Size of remote file: 14.8 kB
test/3616672.jpg ADDED

Git LFS Details

  • SHA256: 8414dba27093cadc43024888a5141a23c9c5e2df29d028cce481554288ea65c6
  • Pointer size: 130 Bytes
  • Size of remote file: 29.8 kB
test/3620042.jpg ADDED

Git LFS Details

  • SHA256: f5b0bba8cfcf70118c0bff19968a1fb4fa460356addc964894deb409a1978998
  • Pointer size: 130 Bytes
  • Size of remote file: 34.7 kB
test/3624462.jpg ADDED

Git LFS Details

  • SHA256: 5d885d2a8ca6cf85bdc7abe0e1c8852e00dd782c045ff3a19b5a4d535ba20b27
  • Pointer size: 130 Bytes
  • Size of remote file: 35.3 kB
test/3656351.jpg ADDED

Git LFS Details

  • SHA256: d4c66736ce66c940ea65da8a3b1372323adecbf97fad41b8516b0be7e536e13e
  • Pointer size: 130 Bytes
  • Size of remote file: 30.3 kB
test/3663142.jpg ADDED

Git LFS Details

  • SHA256: e4d2348dc5b344cce87666ccb3cdc1c876b19bc1e84e04203f62411f9b7d337f
  • Pointer size: 130 Bytes
  • Size of remote file: 34.4 kB
test/3729087.jpg ADDED

Git LFS Details

  • SHA256: 4640d4db2d0a044ea87f9e8c9df7db1312137f94add67ceb992fe8f006db0036
  • Pointer size: 130 Bytes
  • Size of remote file: 47.8 kB
test/3783581.jpg ADDED

Git LFS Details

  • SHA256: 7f092a70761c6cf75769d39a110d10c20d45e3c40184fb4b5ee5ecdc0f116c2d
  • Pointer size: 130 Bytes
  • Size of remote file: 91.7 kB