ag2435 commited on
Commit
a3898b5
·
1 Parent(s): bf0b33a

added raw table

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. .gitignore +1 -0
  3. README.md +46 -0
  4. stackoverflow/train.csv +3 -0
.gitattributes CHANGED
@@ -53,3 +53,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ *.csv filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ *.DS_Store
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: default
4
+ data_files:
5
+ - split: train
6
+ path: "stackoverflow/train.csv"
7
+ ---
8
+
9
+ # StackExchange Dataset
10
+
11
+ Working doc: https://docs.google.com/document/d/1h585bH5sYcQW4pkHzqWyQqA4ape2Bq6o1Cya0TkMOQc/edit?usp=sharing
12
+
13
+ The code to create this dataset is [here](https://github.com/ag2435/arXiv-agent/datasets/stackexchange).
14
+
15
+ <!-- 1. We run the following query on StackExchange Data Explorer (note that this can be done programmatically using BigQuery for the StackOverflow site, but not the other sites)
16
+ ```
17
+ SELECT *
18
+ FROM Posts p
19
+ WHERE p.PostTypeId = 2
20
+ AND LOWER(p.Body) LIKE '%arxiv%'
21
+ ```
22
+
23
+ 2. Download the csv results
24
+
25
+ 3.
26
+
27
+ ```
28
+ CREATE TEMPORARY TABLE answers AS
29
+ SELECT *
30
+ FROM Posts
31
+ WHERE PostTypeId = 2
32
+ AND LOWER(a.Body) LIKE '%arxiv%'
33
+
34
+ CREATE TEMPORARY TABLE questions AS
35
+ SELECT *
36
+ FROM Posts
37
+ WHERE PostTypeId = 1;
38
+
39
+ SELECT *
40
+ FROM answers a
41
+ JOIN questions q ON q.Id = a.ParentId
42
+ ``` -->
43
+
44
+ ## File structure
45
+
46
+ Each folder represents the different StackExchange [sites](https://stackexchange.com/sites#oldest) (~182). The largest one is StackOverflow.
stackoverflow/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:085647173881ce10a227dd3b33711098bc7d54f81270e27813d6caf08429c7ba
3
+ size 12280924