File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
# RuSentRel 1.1
2
-
3
2
> Comparing with v1.0, in v1.1 list of synonyms has been expanded. It covers all
4
3
extracted named entities in * .ann files.
5
4
5
+ ![ ] ( images/graph.png )
6
+
6
7
RuSentRel corpus [[ paper] ( https://arxiv.org/pdf/1808.08932.pdf )] of version 1.1 consisted of analytical articles from Internet-portal inosmi.ru.
7
8
These are translated into Russian texts in the domain of international politics
8
9
obtained from foreign authoritative sources.
@@ -24,7 +25,13 @@ For model application, please refer to the following repositores:
24
25
* Scikit-learn classifiers [ application] ( https://github.com/nicolay-r/sentiment-relation-classifiers )
25
26
* Piecewise CNN [ application] ( https://github.com/nicolay-r/sentiment-pcnn )
26
27
27
- # Parameters
28
+ ## Collection Reader ![ ] ( https://img.shields.io/badge/Python-3.6-brightgreen.svg )
29
+
30
+ Folder ` reader ` contains a collection reader (source file parsers), written in Python-3.6.
31
+
32
+ Please refer to [ read.py] ( read.py ) , as it provides an example of how this collection could be parsed/readed.
33
+
34
+ ## Parameters
28
35
29
36
| Parameter | Training collection | Test collection |
30
37
| ---------------------------------------------------| :--------------------:| :----------------:|
@@ -60,7 +67,7 @@ sentiment single-context attitudes represent 47%
60
67
is about a half of all occured attitudes.
61
68
Considering such a distinctive factor for attitudes labeling, it is important to take into account the labels of several contexts
62
69
63
- # References
70
+ ## References
64
71
<a name =" references " ></a >
65
72
```
66
73
@article{loukachevitch2018extracting,
Original file line number Diff line number Diff line change 19
19
synonyms = RuSentRelSynonymsCollection .from_file ('synonyms.txt' , stemmer = stemmer )
20
20
21
21
# Reading 'train' subfolder of collection.
22
- train_root = 'train'
23
- for news_id in utils .get_rusentrel_train_indices ():
22
+ train_root = 'test'
23
+ for news_id in utils .get_rusentrel_test_indices ():
24
+
25
+ print ("NewsID: {}" .format (news_id ))
24
26
25
27
# Init filepaths
26
28
entities_filepath = utils .get_rusentrel_entity_filepath (news_id , root = train_root )
36
38
# Application
37
39
#############
38
40
39
- print ("NewsID: {}" .format (news_id ))
40
41
41
42
# Example: Access to the read OPINIONS collection.
42
43
for opinion in opininons :
You can’t perform that action at this time.
0 commit comments