Skip to content

Commit 231bd86

Browse files
committed
Process new study data
1 parent 1e51240 commit 231bd86

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+286624
-24654
lines changed

abbOnDemand.js

+93-93
Large diffs are not rendered by default.

data/abbStudy_12000.csv

+11,845
Large diffs are not rendered by default.

data/abbStudy_4000.csv

+4,635
Large diffs are not rendered by default.

data/abbStudy_8000.csv

+8,186
Large diffs are not rendered by default.
File renamed without changes.

data/abb_aggregate.csv

+641
Large diffs are not rendered by default.

data/dropProbability_12000.csv

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
position,prob
2+
0,96
3+
1,64
4+
2,50
5+
3,33
6+
4,23
7+
5,18
8+
6,17
9+
7,16
10+
8,19
11+
9,25
12+
10,32
13+
11,38
14+
12,34
15+
13,70
16+
14,100

data/dropProbability_4000.csv

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
position,prob
2+
0,95
3+
1,68
4+
2,56
5+
3,38
6+
4,28
7+
5,23
8+
6,23
9+
7,20
10+
8,26
11+
9,33
12+
10,39
13+
11,42
14+
12,42
15+
13,88
16+
14,100

data/dropProbability_8000.csv

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
position,prob
2+
0,96
3+
1,66
4+
2,52
5+
3,35
6+
4,24
7+
5,19
8+
6,19
9+
7,17
10+
8,21
11+
9,27
12+
10,33
13+
11,37
14+
12,38
15+
13,78
16+
14,100

data/dropProbability_aggregate.csv

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
position,prob
2+
0,97
3+
1,80
4+
2,79
5+
3,57
6+
4,45
7+
5,40
8+
6,36
9+
7,28
10+
8,33
11+
9,36
12+
10,38
13+
11,48
14+
12,53
15+
13,86
16+
14,100

data/dropProbability_new.csv

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
position,prob
2+
0,96
3+
1,81
4+
2,77
5+
3,55
6+
4,44
7+
5,39
8+
6,33
9+
7,27
10+
8,32
11+
9,40
12+
10,46
13+
11,52
14+
12,64
15+
13,80
16+
14,100
File renamed without changes.

pipeline/abbr/.RData

645 KB
Binary file not shown.

pipeline/abbr/.Rhistory

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
setwd("/Users/jayrsawal/GitHub/Abbreviation-On-Demand-API/pipeline/abbr")
2+
mydata = read.csv("abbr_comparison.csv")
3+
mydata[7] <- apply(mydata, 1, function(a) adist(a[2], a[3]))
4+
mydata[8] <- apply(mydata, 1, function(a) adist(a[2], a[4]))
5+
mydata[9] <- apply(mydata, 1, function(a) adist(a[2], a[5]))
6+
mydata[10] <- apply(mydata, 1, function(a) adist(a[2], a[6]))
7+
write.csv(file="levenshtein.csv", x=mydata)
8+
setwd("/Users/jayrsawal/GitHub/Abbreviation-On-Demand-API/pipeline/abbr")
9+
mydata = read.csv("abbr_comparison.csv")
10+
mydata[7] <- apply(mydata, 1, function(a) adist(a[2], a[3]))
11+
mydata[8] <- apply(mydata, 1, function(a) adist(a[2], a[4]))
12+
mydata[9] <- apply(mydata, 1, function(a) adist(a[2], a[5]))
13+
setwd("/Users/jayrsawal/GitHub/Abbreviation-On-Demand-API/pipeline/abbr")
14+
mydata = read.csv("abbr_comparison.csv")
15+
mydata[6] <- apply(mydata, 1, function(a) adist(a[2], a[3]))
16+
mydata[7] <- apply(mydata, 1, function(a) adist(a[2], a[4]))
17+
mydata[8] <- apply(mydata, 1, function(a) adist(a[2], a[5]))
18+
write.csv(file="levenshtein.csv", x=mydata)

0 commit comments

Comments
 (0)