missakaherath commited on
Commit
82e62f7
·
1 Parent(s): 01194c9

Adding dataset

Browse files
Files changed (27) hide show
  1. .gitattributes +2 -0
  2. Annotated Student Feedback Data/Annotator_1/Annotated_part_1/Final_Dataset_tsv.xmi +3 -0
  3. Annotated Student Feedback Data/Annotator_1/Annotated_part_1/TypeSystem.xml +0 -0
  4. Annotated Student Feedback Data/Annotator_1/Annotated_part_1/webanno5003434294313196640export.zip +3 -0
  5. Annotated Student Feedback Data/Annotator_1/Annotated_part_2/TypeSystem.xml +0 -0
  6. Annotated Student Feedback Data/Annotator_1/Annotated_part_2/ratemy_professor_data_from_sorted_list_shuffle_1.xmi +3 -0
  7. Annotated Student Feedback Data/Annotator_1/Annotated_part_2/webanno4992351798179670315export.zip +3 -0
  8. Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/defomative comment removed/train.tsv +3 -0
  9. Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/less than 100 lengthy comment/test.tsv +3 -0
  10. Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/less than 100 lengthy comment/train.tsv +3 -0
  11. Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/test.tsv +3 -0
  12. Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/train.tsv +3 -0
  13. Annotated Student Feedback Data/Annotator_2/Annotated_part_3/Final_Dataset_tsv.xmi +3 -0
  14. Annotated Student Feedback Data/Annotator_2/Annotated_part_3/TypeSystem.xml +0 -0
  15. Annotated Student Feedback Data/Annotator_2/Annotated_part_3/webanno6789817628243961932export.zip +3 -0
  16. Annotated Student Feedback Data/Annotator_2/Annotated_part_4/TypeSystem.xml +0 -0
  17. Annotated Student Feedback Data/Annotator_2/Annotated_part_4/ratemy_professor_data_from_sorted_list_shuffle_1.xmi +3 -0
  18. Annotated Student Feedback Data/Annotator_2/Annotated_part_4/webanno14967680311112022144export.zip +3 -0
  19. Annotated Student Feedback Data/Annotator_2/Annotated_part_5/TypeSystem.xml +0 -0
  20. Annotated Student Feedback Data/Annotator_2/Annotated_part_5/additional_100_of_rate_my_proffesor.xmi +3 -0
  21. Annotated Student Feedback Data/Annotator_2/Annotated_part_5/webanno17213514329318721792export.zip +3 -0
  22. Annotated Student Feedback Data/Annotator_3/Annotated_part_6/Final_Dataset_tsv.xmi +3 -0
  23. Annotated Student Feedback Data/Annotator_3/Annotated_part_6/TypeSystem.xml +0 -0
  24. Annotated Student Feedback Data/Annotator_3/Annotated_part_6/webanno11062947647141763257export.zip +3 -0
  25. Annotated Student Feedback Data/readme.docx +0 -0
  26. README.md +26 -3
  27. code_for_read_annotated_data.py +40 -0
.gitattributes CHANGED
@@ -35,3 +35,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *.mp3 filter=lfs diff=lfs merge=lfs -text
36
  *.ogg filter=lfs diff=lfs merge=lfs -text
37
  *.wav filter=lfs diff=lfs merge=lfs -text
 
 
 
35
  *.mp3 filter=lfs diff=lfs merge=lfs -text
36
  *.ogg filter=lfs diff=lfs merge=lfs -text
37
  *.wav filter=lfs diff=lfs merge=lfs -text
38
+ *.xmi filter=lfs diff=lfs merge=lfs -text
39
+ *.tsv filter=lfs diff=lfs merge=lfs -text
Annotated Student Feedback Data/Annotator_1/Annotated_part_1/Final_Dataset_tsv.xmi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd4334873eb397d6b150a7e049d103b703aef88c2debc73e8c73a4439310a226
3
+ size 10764998
Annotated Student Feedback Data/Annotator_1/Annotated_part_1/TypeSystem.xml ADDED
The diff for this file is too large to render. See raw diff
 
Annotated Student Feedback Data/Annotator_1/Annotated_part_1/webanno5003434294313196640export.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:298fa601e78ec5ec38549d2af2d1c4a7db8cca751b7e20251b49730e41d97471
3
+ size 1603557
Annotated Student Feedback Data/Annotator_1/Annotated_part_2/TypeSystem.xml ADDED
The diff for this file is too large to render. See raw diff
 
Annotated Student Feedback Data/Annotator_1/Annotated_part_2/ratemy_professor_data_from_sorted_list_shuffle_1.xmi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcf036ccf07f787901dc3329a8356f27b566f031c23fc7b3736366b8d900d427
3
+ size 2380427
Annotated Student Feedback Data/Annotator_1/Annotated_part_2/webanno4992351798179670315export.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:122d40ecd720513f6ea7a80bd2cc4d32947fa1777a436e7987f3147f6ae3130c
3
+ size 366074
Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/defomative comment removed/train.tsv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e3a2a5545f6ac527291fa22dfe3c308db06ff6f148ebafe08183e9121fa99f8
3
+ size 3303387
Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/less than 100 lengthy comment/test.tsv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc83f5c1b7cc6ae27230f191f0bb9cc3658db95fa078e54f49aa28a2efbec498
3
+ size 1112826
Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/less than 100 lengthy comment/train.tsv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a28368bf272300d9b2ceb07f65f8c88098bd8c8b589a2864f3465de80334d284
3
+ size 2898769
Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/test.tsv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0745cba9207b31491987651285448bcf3a8e01f0372e2c957ff65b280bf469cc
3
+ size 666315
Annotated Student Feedback Data/Annotator_1/towe-eacl_recreation_data_set/train.tsv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29cf314967a8906b4728ffac3deddee595fd48aef531dfae421d5362d85b5335
3
+ size 4106734
Annotated Student Feedback Data/Annotator_2/Annotated_part_3/Final_Dataset_tsv.xmi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35bcd8249cfb11b51c1a144e572826689d153d4dd61d72a924df0a5995e12c11
3
+ size 10462975
Annotated Student Feedback Data/Annotator_2/Annotated_part_3/TypeSystem.xml ADDED
The diff for this file is too large to render. See raw diff
 
Annotated Student Feedback Data/Annotator_2/Annotated_part_3/webanno6789817628243961932export.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e5b53de230c292cf74dc0fc56b4baf0b6d0eb23e268644977babc945b7f1565
3
+ size 1561885
Annotated Student Feedback Data/Annotator_2/Annotated_part_4/TypeSystem.xml ADDED
The diff for this file is too large to render. See raw diff
 
Annotated Student Feedback Data/Annotator_2/Annotated_part_4/ratemy_professor_data_from_sorted_list_shuffle_1.xmi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e5bb6a4bdcd48c4ba48eafbb60e734e3e0ea7c25c122d2dac7b0951e0da91e3
3
+ size 2656011
Annotated Student Feedback Data/Annotator_2/Annotated_part_4/webanno14967680311112022144export.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6db485067927be9f2e0909cdfa54999ee99ab62bf7d66d4a736335f15fc46ae3
3
+ size 402028
Annotated Student Feedback Data/Annotator_2/Annotated_part_5/TypeSystem.xml ADDED
The diff for this file is too large to render. See raw diff
 
Annotated Student Feedback Data/Annotator_2/Annotated_part_5/additional_100_of_rate_my_proffesor.xmi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8d20d92d587e2f765a94362fd6eda283df5e115239d5a8fc19579fbb0bf792c
3
+ size 261886
Annotated Student Feedback Data/Annotator_2/Annotated_part_5/webanno17213514329318721792export.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b14e8128bd176999555e600789f82fe08e9c72621ab3a6d309e0d5e7aac46dd
3
+ size 46917
Annotated Student Feedback Data/Annotator_3/Annotated_part_6/Final_Dataset_tsv.xmi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4bdd97810d51009bd396c546d120d31657ef4e122c7961cf1d9de7af8b90780
3
+ size 10853108
Annotated Student Feedback Data/Annotator_3/Annotated_part_6/TypeSystem.xml ADDED
The diff for this file is too large to render. See raw diff
 
Annotated Student Feedback Data/Annotator_3/Annotated_part_6/webanno11062947647141763257export.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0417d78020cd7498f238e8da331627916d1fb0d79f52ab71e276dd36ced31bd
3
+ size 1612704
Annotated Student Feedback Data/readme.docx ADDED
Binary file (6.59 kB). View file
 
README.md CHANGED
@@ -1,3 +1,26 @@
1
- ---
2
- license: osl-3.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # README
2
+ ## Annotated Student Feedback
3
+ This resource contains 3000 student feedback data that have been annotated for aspect terms, opinion terms, polarities of the opinion terms towards targeted aspects, document-level opinion polarities, and sentence separations.
4
+
5
+ ### Folder Structure of the resource,
6
+
7
+ ```bash
8
+ └───Annotated Student Feedback Data
9
+ ├───Annotator_1
10
+ │ ├───Annotated_part_1
11
+ │ ├───Annotated_part_2
12
+ │ └───towe-eacl_recreation_data_set
13
+ │ ├───defomative comment removed
14
+ │ └───less than 100 lengthy comment
15
+ ├───Annotator_2
16
+ │ ├───Annotated_part_3
17
+ │ ├───Annotated_part_4
18
+ │ └───Annotated_part_5
19
+ └───Annotator_3
20
+ └───Annotated_part_6
21
+ ```
22
+
23
+ Each Annotated_part_# folders contain three files. Those are in XMI, XML, and ZIP formats.
24
+ XMI files contain the annotated student feedback data and XML files contain tagsets used for annotation.
25
+
26
+ Find the code for reading data from XML and XMI files in `code_for_read_annotated_data.py`
code_for_read_annotated_data.py ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from cassis import *
2
+ import csv
3
+ from nltk.tokenize import word_tokenize
4
+
5
+ sentence_id = 0
6
+ number = 0
7
+
8
+ max_length = 0
9
+ min_length = 10000
10
+ sum_length = 0
11
+ count = 0
12
+
13
+ annotator_1 = [['Annotator_1','Annotated_part_1','Final_Dataset_tsv'],['Annotator_1','Annotated_part_2','ratemy_professor_data_from_sorted_list_shuffle_1']]
14
+ annotator_2=[['Annotator_3','Annotated_part_6','Final_Dataset_tsv']]
15
+ annotator_3 = [['Annotator_2','Annotated_part_3','Final_Dataset_tsv'],['Annotator_2','Annotated_part_4','ratemy_professor_data_from_sorted_list_shuffle_1'],['Annotator_2','Annotated_part_5','additional_100_of_rate_my_proffesor']]
16
+ annotators = [annotator_1,annotator_2,annotator_3]
17
+ path_for_folder = "./Annotated Student Feedback Data/" ## change this path to "Annotated Student Feedback Data" folder
18
+
19
+ with open(path_for_folder+'Annotator_3/Annotated_part_6/TypeSystem.xml', 'rb') as f: # get all annotated tagsets
20
+ typesystem_tmp = load_typesystem(f)
21
+ for annotator in annotators:
22
+ for path_for_data in annotator:
23
+
24
+
25
+ with open('/content/drive/Shareddrives/FYP/Annotated Data/'+path_for_data[0]+'/'+path_for_data[1]+'/'+path_for_data[2]+'.xmi', 'rb') as f: #read all annotated dataset one by one
26
+ doc_tmp = load_cas_from_xmi(f, typesystem=typesystem_tmp)
27
+
28
+ data = doc_tmp.sofa_string
29
+ for (_, sentence) in enumerate(doc_tmp.select('webanno.custom.'+"Document_levelopinion")): #_to get sentences seperately
30
+ if sentence.Document_levelopinion != None:
31
+ count +=1
32
+ length = len(word_tokenize(sentence.get_covered_text()))
33
+ sum_length += (length)
34
+ if length > max_length:
35
+ max_length = length
36
+ if length < min_length:
37
+ min_length = length
38
+ print("max = ",max_length)
39
+ print("min = ",min_length)
40
+ print("sum = ",sum_length/count)