tomaarsen HF staff commited on
Commit
079a958
1 Parent(s): c875e71

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -0
README.md CHANGED
@@ -1,4 +1,16 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  config_name: pair
4
  features:
@@ -18,3 +30,24 @@ configs:
18
  - split: train
19
  path: pair/train-*
20
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ multilinguality:
5
+ - monolingual
6
+ size_categories:
7
+ - 1M<n<10M
8
+ task_categories:
9
+ - feature-extraction
10
+ - sentence-similarity
11
+ pretty_name: CodeSearchNet
12
+ tags:
13
+ - sentence-transformers
14
  dataset_info:
15
  config_name: pair
16
  features:
 
30
  - split: train
31
  path: pair/train-*
32
  ---
33
+
34
+ # Dataset Card for CodeSearchNet
35
+
36
+ This dataset is a collection of comment-code pairs of various programming languages. See [code_search_net](https://huggingface.co/datasets/code_search_net) for additional information.
37
+ This dataset can be used directly with Sentence Transformers to train embedding models.
38
+
39
+ ## Dataset Subsets
40
+
41
+ ### `pair` subset
42
+
43
+ * Columns: "comment", "code"
44
+ * Column types: `str`, `str`
45
+ * Examples:
46
+ ```python
47
+ {
48
+ 'comment': 'Computes the new parent id for the node being moved.\n\n@return int',
49
+ 'code': "protected function parentId()\n\t{\n\t\tswitch ( $this->position )\n\t\t{\n\t\t\tcase 'root':\n\t\t\t\treturn null;\n\n\t\t\tcase 'child':\n\t\t\t\treturn $this->target->getKey();\n\n\t\t\tdefault:\n\t\t\t\treturn $this->target->getParentId();\n\t\t}\n\t}",
50
+ }
51
+ ```
52
+ * Collection strategy: Reading the Code Search Net dataset from [embedding-training-data](https://huggingface.co/datasets/sentence-transformers/embedding-training-data).
53
+ * Deduplified: No