Shuu12121 commited on
Commit
d782282
·
verified ·
1 Parent(s): 8a9f992

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -65
README.md CHANGED
@@ -1,65 +1,62 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: query_docstring
5
- dtype: string
6
- - name: positive_code
7
- dtype: string
8
- - name: hard_negative_code
9
- dtype: string
10
- - name: similarity_score
11
- dtype: float64
12
- - name: query_repo
13
- dtype: string
14
- - name: query_path
15
- dtype: string
16
- - name: hn_repo
17
- dtype: string
18
- - name: hn_path
19
- dtype: string
20
- - name: hn_license
21
- dtype: string
22
- - name: language
23
- dtype: string
24
- splits:
25
- - name: python
26
- num_bytes: 1709467276
27
- num_examples: 500000
28
- - name: ruby
29
- num_bytes: 771594979
30
- num_examples: 466515
31
- - name: javascript
32
- num_bytes: 754533992
33
- num_examples: 388235
34
- - name: java
35
- num_bytes: 1820738822
36
- num_examples: 500000
37
- - name: rust
38
- num_bytes: 694659252
39
- num_examples: 313485
40
- - name: go
41
- num_bytes: 923720657
42
- num_examples: 500000
43
- - name: php
44
- num_bytes: 630296579
45
- num_examples: 500000
46
- download_size: 1128560243
47
- dataset_size: 7305011557
48
- configs:
49
- - config_name: default
50
- data_files:
51
- - split: python
52
- path: data/python-*
53
- - split: ruby
54
- path: data/ruby-*
55
- - split: javascript
56
- path: data/javascript-*
57
- - split: java
58
- path: data/java-*
59
- - split: rust
60
- path: data/rust-*
61
- - split: go
62
- path: data/go-*
63
- - split: php
64
- path: data/php-*
65
- ---
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - Shuu12121/python-codesearch-filtered
5
+ - Shuu12121/java-codesearch-filtered
6
+ - Shuu12121/javascript-codesearch-filtered
7
+ - Shuu12121/php-codesearch-filtered
8
+ - Shuu12121/ruby-codesearch-filtered
9
+ - Shuu12121/go-codesearch-filtered
10
+ - Shuu12121/rust-codesearch-filtered
11
+ tags:
12
+ - python
13
+ - java
14
+ - javascript
15
+ - php
16
+ - ruby
17
+ - go
18
+ - rust
19
+ - code
20
+ task_categories:
21
+ - text-classification
22
+ language:
23
+ - en
24
+ ---
25
+
26
+ # multilingual-codesearch-hard-negativesV2
27
+
28
+ このデータセットは、**多言語コード検索タスク**向けに設計された、**ハードネガティブペア**を提供します。
29
+ 複数のプログラミング言語から収集した、フィルタ済みのコード/ドックストリング対を基に構成されています。
30
+
31
+ ## データセット概要
32
+
33
+ 各サンプルには以下の情報が含まれます。
34
+ - `query_docstring`: 関数やメソッドの自然言語による説明
35
+ - `positive_code`: 対応する正しいコード実装
36
+ - `hard_negative_code`: 類似しているが意味が異なるコード(FAISSによる近傍検索で選定)
37
+ - `similarity_score`: クエリとハードネガティブ間のFAISS類似度スコア(内積/コサイン類似度)
38
+ - 付加情報: リポジトリ、ファイルパス、ライセンス情報、言語
39
+
40
+ ## 対応言語
41
+
42
+ - Python
43
+ - Java
44
+ - JavaScript
45
+ - PHP
46
+ - Ruby
47
+ - Go
48
+ - Rust
49
+
50
+ ## データセット作成方法
51
+
52
+ - **3行以上**のドックストリングを持つペアのみをフィルタリング。
53
+ - 各クエリに対して、埋め込み空間内で**20件の近傍候補**をFAISS検索。
54
+ - その中から**5件のハードネガティブ**を選択(自身は除外)。
55
+ - コード/ドックストリングの埋め込みには [`Shuu12121/CodeSearch-ModernBERT-Crow-Plus`](https://huggingface.co/Shuu12121/CodeSearch-ModernBERT-Crow-Plus) を使用。
56
+ - Pythonコードに対しては、**マルチラインドックストリング**を削除処理。
57
+
58
+ ## 想定される用途
59
+
60
+ - **Cross-Encoderモデル**のトレーニング(コード検索精度向上目的)
61
+ - **ハードネガティブマイニング**による検索性能向上
62
+ - 多言語対応の**コード理解モデルのファインチューニング**