Skip to content

Commit 29219df

Browse files
committed
Update
1 parent c28f173 commit 29219df

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# RuSentRel 1.1
2-
32
> Comparing with v1.0, in v1.1 list of synonyms has been expanded. It covers all
43
extracted named entities in *.ann files.
54

5+
![](images/graph.png)
6+
67
RuSentRel corpus [[paper](https://arxiv.org/pdf/1808.08932.pdf)] of version 1.1 consisted of analytical articles from Internet-portal inosmi.ru.
78
These are translated into Russian texts in the domain of international politics
89
obtained from foreign authoritative sources.
@@ -24,7 +25,13 @@ For model application, please refer to the following repositores:
2425
* Scikit-learn classifiers [application](https://github.com/nicolay-r/sentiment-relation-classifiers)
2526
* Piecewise CNN [application](https://github.com/nicolay-r/sentiment-pcnn)
2627

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
2835

2936
| Parameter | Training collection | Test collection |
3037
|---------------------------------------------------|:--------------------:|:----------------:|
@@ -60,7 +67,7 @@ sentiment single-context attitudes represent 47%
6067
is about a half of all occured attitudes.
6168
Considering such a distinctive factor for attitudes labeling, it is important to take into account the labels of several contexts
6269

63-
# References
70+
## References
6471
<a name="references"></a>
6572
```
6673
@article{loukachevitch2018extracting,

images/graph.png

548 KB
Loading

read.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
synonyms = RuSentRelSynonymsCollection.from_file('synonyms.txt', stemmer=stemmer)
2020

2121
# 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))
2426

2527
# Init filepaths
2628
entities_filepath = utils.get_rusentrel_entity_filepath(news_id, root=train_root)
@@ -36,7 +38,6 @@
3638
# Application
3739
#############
3840

39-
print("NewsID: {}".format(news_id))
4041

4142
# Example: Access to the read OPINIONS collection.
4243
for opinion in opininons:

0 commit comments

Comments
 (0)