init
Browse files
README.md
CHANGED
@@ -61,6 +61,8 @@ An example of `train` looks as follows.
|
|
61 |
| ReceivesAction | 18 | 16 | 8 | 6 |
|
62 |
| SymbolOf | 0 | 0 | 2 | 3 |
|
63 |
| UsedFor | 249 | 269 | 81 | 74 |
|
|
|
|
|
64 |
|
65 |
### Citation Information
|
66 |
```
|
|
|
61 |
| ReceivesAction | 18 | 16 | 8 | 6 |
|
62 |
| SymbolOf | 0 | 0 | 2 | 3 |
|
63 |
| UsedFor | 249 | 269 | 81 | 74 |
|
64 |
+
|:-----------------|-------------------:|-------------------:|------------------------:|------------------------:|
|
65 |
+
| SUM | 1795 | 1791 | 595 | 595 |
|
66 |
|
67 |
### Citation Information
|
68 |
```
|
get_stats.py
CHANGED
@@ -23,6 +23,11 @@ for r in df['relation_type'].unique():
|
|
23 |
|
24 |
df = pd.DataFrame(stats).sort_values(by=['relation_type'])
|
25 |
df.index = df.pop('relation_type')
|
|
|
|
|
|
|
|
|
|
|
26 |
df.to_csv('stats.csv')
|
27 |
with open('stats.md', 'w') as f:
|
28 |
f.write(df.to_markdown())
|
|
|
23 |
|
24 |
df = pd.DataFrame(stats).sort_values(by=['relation_type'])
|
25 |
df.index = df.pop('relation_type')
|
26 |
+
sum_pairs = df.sum(0)
|
27 |
+
df = df.T
|
28 |
+
df['SUM'] = sum_pairs
|
29 |
+
df = df.T
|
30 |
+
|
31 |
df.to_csv('stats.csv')
|
32 |
with open('stats.md', 'w') as f:
|
33 |
f.write(df.to_markdown())
|
stats.csv
CHANGED
@@ -21,3 +21,4 @@ PartOf,34,40,7,5
|
|
21 |
ReceivesAction,18,16,8,6
|
22 |
SymbolOf,0,0,2,3
|
23 |
UsedFor,249,269,81,74
|
|
|
|
21 |
ReceivesAction,18,16,8,6
|
22 |
SymbolOf,0,0,2,3
|
23 |
UsedFor,249,269,81,74
|
24 |
+
SUM,1795,1791,595,595
|
stats.md
CHANGED
@@ -21,4 +21,6 @@
|
|
21 |
| PartOf | 34 | 40 | 7 | 5 |
|
22 |
| ReceivesAction | 18 | 16 | 8 | 6 |
|
23 |
| SymbolOf | 0 | 0 | 2 | 3 |
|
24 |
-
| UsedFor | 249 | 269 | 81 | 74 |
|
|
|
|
|
|
21 |
| PartOf | 34 | 40 | 7 | 5 |
|
22 |
| ReceivesAction | 18 | 16 | 8 | 6 |
|
23 |
| SymbolOf | 0 | 0 | 2 | 3 |
|
24 |
+
| UsedFor | 249 | 269 | 81 | 74 |
|
25 |
+
|:-----------------|-------------------:|-------------------:|------------------------:|------------------------:|
|
26 |
+
| SUM | 1795 | 1791 | 595 | 595 |
|