asahi417 commited on
Commit
e417aa0
·
1 Parent(s): 17c3e4d
Files changed (48) hide show
  1. data/tweet_hate/full.jsonl +0 -0
  2. data/tweet_hate/test.jsonl +2 -2
  3. data/tweet_hate/test_1.jsonl +2 -2
  4. data/tweet_hate/test_2.jsonl +2 -2
  5. data/tweet_hate/test_3.jsonl +2 -2
  6. data/tweet_hate/test_4.jsonl +2 -2
  7. data/tweet_hate/train.jsonl +2 -2
  8. data/tweet_hate/validation.jsonl +2 -2
  9. data/tweet_hate_test0_seed0/test.jsonl +2 -2
  10. data/tweet_hate_test0_seed0/train.jsonl +2 -2
  11. data/tweet_hate_test0_seed0/validation.jsonl +2 -2
  12. data/tweet_hate_test0_seed1/test.jsonl +2 -2
  13. data/tweet_hate_test0_seed1/train.jsonl +2 -2
  14. data/tweet_hate_test0_seed1/validation.jsonl +2 -2
  15. data/tweet_hate_test0_seed2/test.jsonl +2 -2
  16. data/tweet_hate_test0_seed2/train.jsonl +2 -2
  17. data/tweet_hate_test0_seed2/validation.jsonl +2 -2
  18. data/tweet_hate_test1_seed0/test.jsonl +2 -2
  19. data/tweet_hate_test1_seed0/train.jsonl +2 -2
  20. data/tweet_hate_test1_seed0/validation.jsonl +2 -2
  21. data/tweet_hate_test1_seed1/test.jsonl +2 -2
  22. data/tweet_hate_test1_seed1/train.jsonl +2 -2
  23. data/tweet_hate_test1_seed1/validation.jsonl +2 -2
  24. data/tweet_hate_test1_seed2/test.jsonl +2 -2
  25. data/tweet_hate_test1_seed2/train.jsonl +2 -2
  26. data/tweet_hate_test1_seed2/validation.jsonl +2 -2
  27. data/tweet_hate_test2_seed0/test.jsonl +2 -2
  28. data/tweet_hate_test2_seed0/train.jsonl +2 -2
  29. data/tweet_hate_test2_seed0/validation.jsonl +2 -2
  30. data/tweet_hate_test2_seed1/test.jsonl +2 -2
  31. data/tweet_hate_test2_seed1/train.jsonl +2 -2
  32. data/tweet_hate_test2_seed1/validation.jsonl +2 -2
  33. data/tweet_hate_test2_seed2/test.jsonl +2 -2
  34. data/tweet_hate_test2_seed2/train.jsonl +2 -2
  35. data/tweet_hate_test2_seed2/validation.jsonl +2 -2
  36. data/tweet_hate_test3_seed0/test.jsonl +2 -2
  37. data/tweet_hate_test3_seed0/train.jsonl +2 -2
  38. data/tweet_hate_test3_seed0/validation.jsonl +2 -2
  39. data/tweet_hate_test3_seed1/test.jsonl +2 -2
  40. data/tweet_hate_test3_seed1/train.jsonl +2 -2
  41. data/tweet_hate_test3_seed1/validation.jsonl +2 -2
  42. data/tweet_hate_test3_seed2/test.jsonl +2 -2
  43. data/tweet_hate_test3_seed2/train.jsonl +2 -2
  44. data/tweet_hate_test3_seed2/validation.jsonl +2 -2
  45. experiments/main.sh +1 -2
  46. process/tweet_hate.py +56 -18
  47. process/tweet_nerd.py +8 -8
  48. tweet_temporal_shift.py +3 -4
data/tweet_hate/full.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/tweet_hate/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:43b9d4a9db852d8da4e299981096a83557cbbe28dde9184e781e89ea86008fb7
3
- size 1068405
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06680841b28cd8b328c3719832b0953e29789311491eafaec53affce2cb156ae
3
+ size 243074
data/tweet_hate/test_1.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:95ed6597a73c19371997a316d75cd864944c3c407cca334e7d791d8392510cf7
3
- size 267275
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81b8bf1d06f02b0b2a9038aa9ca9a8378a8708a0cc2a5c7bfe59d5e7099fbde5
3
+ size 61212
data/tweet_hate/test_2.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1fc150221e8da1c8375a4c02040a0a116847df2784e435927406236775e04d8a
3
- size 269030
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c14bf9ddb78ab78fcdff8f2b6863a8c5601e50d89d954d228c6f47d4c20b0d4
3
+ size 59416
data/tweet_hate/test_3.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b3222984613f3776a1b7238551b150623f1949e6ecf427810d0a0c452f0380b4
3
- size 263958
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa742fa51f4f3c3c1efaa384d229d62b560ff4cfbbfecd2455879eb3f284269e
3
+ size 61244
data/tweet_hate/test_4.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:89b7a3ef3b33df6cf9f852548cd1e5f17feb2f06583cbcebe2e4393065feed1a
3
- size 268139
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdda745a2c9498f103035cb54789343952e2cf37d4c04a1d4e563d597fb0b270
3
+ size 61199
data/tweet_hate/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1c18e35554c1a640ac1e8a9a715288153146267d7f6cd8f5b73c6e9ddaa7ed7e
3
- size 815849
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:669a5f2776e733468275b7484687b310ee090c0134309bfe1d11d7bf55e75bf6
3
+ size 418919
data/tweet_hate/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3834b8a9257daf7a0c3452ca30e9743727d227cd073497a9effaa21941730b36
3
- size 203960
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8986284d3c9636f91bb54fd25fc83a4e199089510b762a3e5991954e0b0a97a1
3
+ size 105197
data/tweet_hate_test0_seed0/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:95ed6597a73c19371997a316d75cd864944c3c407cca334e7d791d8392510cf7
3
- size 267275
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81b8bf1d06f02b0b2a9038aa9ca9a8378a8708a0cc2a5c7bfe59d5e7099fbde5
3
+ size 61212
data/tweet_hate_test0_seed0/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:174544a9026d4119a2e7022617eb9c5d5e2ca0960e49ea4f211015a7a547f30d
3
- size 840880
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bee379f9f3d982b1a26cd480abc2f5f53005279a71fb84f68f33f52046c1aa8d
3
+ size 400023
data/tweet_hate_test0_seed0/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a399256c2a55aea7f884b704ad8a7aab2720318f6e536f717d6e117466fa0538
3
- size 210897
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9091e07bf612e538410baad40f847cae7379fd0d830c64d1bdb336fd275d8678
3
+ size 105197
data/tweet_hate_test0_seed1/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:95ed6597a73c19371997a316d75cd864944c3c407cca334e7d791d8392510cf7
3
- size 267275
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81b8bf1d06f02b0b2a9038aa9ca9a8378a8708a0cc2a5c7bfe59d5e7099fbde5
3
+ size 61212
data/tweet_hate_test0_seed1/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2484567154aa9abbe66e77f936af53879b71136b2a4dcacd8343e77aeb3b8061
3
- size 840660
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c34175bd07cdc566c6dd3e964e79c32efb6c996d741b2fb860c30d93238adb0
3
+ size 400139
data/tweet_hate_test0_seed1/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8f9bfaa47f0d1e4fab93a2af581257e2e9df56347f67315981288ce77172b9a0
3
- size 209114
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64f807f63b98df25be71e00981a8137897a2dd263093b77d6844038b2c7c91fc
3
+ size 105197
data/tweet_hate_test0_seed2/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:95ed6597a73c19371997a316d75cd864944c3c407cca334e7d791d8392510cf7
3
- size 267275
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81b8bf1d06f02b0b2a9038aa9ca9a8378a8708a0cc2a5c7bfe59d5e7099fbde5
3
+ size 61212
data/tweet_hate_test0_seed2/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fd7f623f6204d08e70cfa4ada9d15aa53448c22ab0999f2dc661b9772d5158b1
3
- size 841027
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71c1f32053e29d0da9e1612aae23b8453b3dd97f643efb08e350703eaede8bda
3
+ size 400637
data/tweet_hate_test0_seed2/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:351806667abfb3801f417e8b2f932d137302853fa4146fa2df59388782a82c74
3
- size 211196
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ee364d6af4c60ddd693de3d67c952c284e99304ccd164271cadea43bb745925
3
+ size 105197
data/tweet_hate_test1_seed0/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1fc150221e8da1c8375a4c02040a0a116847df2784e435927406236775e04d8a
3
- size 269030
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c14bf9ddb78ab78fcdff8f2b6863a8c5601e50d89d954d228c6f47d4c20b0d4
3
+ size 59416
data/tweet_hate_test1_seed0/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f6017139e0b986dd0ef2457dc0bdfa6f4ab1f22b3969fa65170331d97e9c5539
3
- size 839166
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cf5f7a633ac749b5c1f03db5f6a796af40590ebbc02e54fe950797883e8f371
3
+ size 401551
data/tweet_hate_test1_seed0/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3f00239f7d2efb1b426cde73b151ef81b4b6c0275275a3e85d19c817d5395259
3
- size 209502
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0eed934d4a2f7475b330e9ef15fcc31cfff950f9cda8265659f8404aea31a6fa
3
+ size 105197
data/tweet_hate_test1_seed1/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1fc150221e8da1c8375a4c02040a0a116847df2784e435927406236775e04d8a
3
- size 269030
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c14bf9ddb78ab78fcdff8f2b6863a8c5601e50d89d954d228c6f47d4c20b0d4
3
+ size 59416
data/tweet_hate_test1_seed1/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ac2f0fa53e488333c4bac8aecbf61ffea86159075a109d920d52129e6ac70bea
3
- size 838927
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1dc844c6a4d699e5e39db0957d8676631e1123df20814cd2a76d0e4b5e3482c6
3
+ size 402798
data/tweet_hate_test1_seed1/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f455382ee8ba826d0ba941a3a25836f6694d1ec194f07962b17e1727c1dde228
3
- size 209959
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:521277853bf996240984f1cc9a0ba8e8655ecc1cce51f6643421561213342fdc
3
+ size 105197
data/tweet_hate_test1_seed2/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1fc150221e8da1c8375a4c02040a0a116847df2784e435927406236775e04d8a
3
- size 269030
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c14bf9ddb78ab78fcdff8f2b6863a8c5601e50d89d954d228c6f47d4c20b0d4
3
+ size 59416
data/tweet_hate_test1_seed2/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f1d5c7efa5db8ab2ecd6131c6958f4f0a41cdb5806808d45de34dc753c697723
3
- size 841009
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bdebfd16232059bcfa56524f2ec067c56a32e7a2b9b62a005ee41f2eebad6d1
3
+ size 401491
data/tweet_hate_test1_seed2/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:43ad0ede79283aae0c0c58116e45503618ac11a475e39729e9d19c88aee243f0
3
- size 210602
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9d8e9b64218abd6b5fbb41719363e3379c7773aebb38a3cae25ba85b7084a4c
3
+ size 105197
data/tweet_hate_test2_seed0/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b3222984613f3776a1b7238551b150623f1949e6ecf427810d0a0c452f0380b4
3
- size 263958
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa742fa51f4f3c3c1efaa384d229d62b560ff4cfbbfecd2455879eb3f284269e
3
+ size 61244
data/tweet_hate_test2_seed0/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6c3413462ad64727c505eb8cb6572671aa5b05ea2140a0e227c5d564a22d4bbe
3
- size 844785
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fc4823cdd8ec94cae9df23cc483d5c0963b84e44395a5baca1b2d8b92f44ebb
3
+ size 401293
data/tweet_hate_test2_seed0/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7aed7f2e55776d1e59a870387a868575168016683c7b8c1d3cc1669786b822c2
3
- size 211090
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ac12111730d8f02800cf95b40528fc0d80c8725a7163cbb867cd1c3df9b8fbf
3
+ size 105197
data/tweet_hate_test2_seed1/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b3222984613f3776a1b7238551b150623f1949e6ecf427810d0a0c452f0380b4
3
- size 263958
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa742fa51f4f3c3c1efaa384d229d62b560ff4cfbbfecd2455879eb3f284269e
3
+ size 61244
data/tweet_hate_test2_seed1/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1761a32da30f2a6cfa17995bcbc5f5f131fb94ae85b020d455c31236825c1610
3
- size 838534
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0e8546be8c1c995d5799d4b5dd23d0dd47ab17e9150d640a844affae2fff714
3
+ size 401160
data/tweet_hate_test2_seed1/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:df48ca1357eacb231bcc2e3bb77509e3b41c7f7e513eb4c301b50728f40b068b
3
- size 212723
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a5b29151045358b3b3d5ee3532e74e13cf2744857c9a234bbbb1f69ff038bf9
3
+ size 105197
data/tweet_hate_test2_seed2/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b3222984613f3776a1b7238551b150623f1949e6ecf427810d0a0c452f0380b4
3
- size 263958
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa742fa51f4f3c3c1efaa384d229d62b560ff4cfbbfecd2455879eb3f284269e
3
+ size 61244
data/tweet_hate_test2_seed2/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3a2f2207f3bcb451d067743f16866693524bfc2bb16bdbaab813c5ce106f3b40
3
- size 841369
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b99953e8a6ada7c4db504d6105f602b7e16c4dce984cfeb60c9895d3e411e677
3
+ size 402506
data/tweet_hate_test2_seed2/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a93b57db080ef7cb71be8606b07f5cf9b5431f16b5a0ae52d4387af13b330c2c
3
- size 211008
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:239d948d7962b859a31e6be1804964b15e3b21b4966d622b5aa521534a8d0a62
3
+ size 105197
data/tweet_hate_test3_seed0/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:89b7a3ef3b33df6cf9f852548cd1e5f17feb2f06583cbcebe2e4393065feed1a
3
- size 268139
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdda745a2c9498f103035cb54789343952e2cf37d4c04a1d4e563d597fb0b270
3
+ size 61199
data/tweet_hate_test3_seed0/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:216a53acac01a66030236282738da43adb48ac26935eee415fd3a1e678936316
3
- size 841157
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33e3684bd2ca296b524775654d0d4d9a8f1e1c1468583fb40ac9df849a9e07fd
3
+ size 400511
data/tweet_hate_test3_seed0/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6bc31bfcbcc0f0f3d6212c98a22ff142909ee58fe736b63eda1e08c72872a15d
3
- size 213049
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8c792ca094710854afb9056b3adbf270c6b115c137b72e879a11f2cbb484729
3
+ size 105197
data/tweet_hate_test3_seed1/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:89b7a3ef3b33df6cf9f852548cd1e5f17feb2f06583cbcebe2e4393065feed1a
3
- size 268139
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdda745a2c9498f103035cb54789343952e2cf37d4c04a1d4e563d597fb0b270
3
+ size 61199
data/tweet_hate_test3_seed1/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c47d6e191f32f757bcc6f58ba89e1ff9adb3d24eeaf192a596c5c86e5f1f2dd3
3
- size 840179
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:732e95bca8796b76c945dbda47c3a7d65eb50a94b41e266887e6f42f23f5bc30
3
+ size 400156
data/tweet_hate_test3_seed1/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:864db3e45cd644e2f552488dc06a76ad973533ba04eddaf9cb5d87cab1ab5c07
3
- size 210892
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e753471f54cc8710d9eb02c5128c2046e5c29e9bfa7d15e8ebb5eaed37a4c0c
3
+ size 105197
data/tweet_hate_test3_seed2/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:89b7a3ef3b33df6cf9f852548cd1e5f17feb2f06583cbcebe2e4393065feed1a
3
- size 268139
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdda745a2c9498f103035cb54789343952e2cf37d4c04a1d4e563d597fb0b270
3
+ size 61199
data/tweet_hate_test3_seed2/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fd43253ba78ce975eceb84a130b13b39d6192794257941a3b90f78741ba680d5
3
- size 842557
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c678c695bdcbd09efe330a10fcac318e4022cd66c8956d76d9467213bf3ecef3
3
+ size 401246
data/tweet_hate_test3_seed2/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:78fddd1e3e29b93c91889b8f6e5b48077e593ca9c6bf1ff2c267c9215f7f6369
3
- size 211761
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4ba22f04ac67eeb3b79c7417d60fbb367d9081d95d04deb955e810e92c43cf8
3
+ size 105197
experiments/main.sh CHANGED
@@ -7,11 +7,10 @@ MODEL="vinai/bertweet-large"
7
  MODEL="cardiffnlp/twitter-roberta-base-2019-90m"
8
  MODEL="cardiffnlp/twitter-roberta-base-dec2020"
9
  MODEL="cardiffnlp/twitter-roberta-base-2021-124m"
10
- MODEL="cardiffnlp/twitter-roberta-large-2022-154m"
11
  MODEL="cardiffnlp/twitter-roberta-base-2022-154m"
 
12
 
13
  # EMOJI
14
-
15
  python model_finetuning_emoji.py -m "${MODEL}" -d "emoji_temporal"
16
  rm -rf ckpt/emoji*${MODEL##*/}*
17
  python model_finetuning_emoji.py -m "${MODEL}" -d "emoji_random0_seed0"
 
7
  MODEL="cardiffnlp/twitter-roberta-base-2019-90m"
8
  MODEL="cardiffnlp/twitter-roberta-base-dec2020"
9
  MODEL="cardiffnlp/twitter-roberta-base-2021-124m"
 
10
  MODEL="cardiffnlp/twitter-roberta-base-2022-154m"
11
+ MODEL="cardiffnlp/twitter-roberta-large-2022-154m"
12
 
13
  # EMOJI
 
14
  python model_finetuning_emoji.py -m "${MODEL}" -d "emoji_temporal"
15
  rm -rf ckpt/emoji*${MODEL##*/}*
16
  python model_finetuning_emoji.py -m "${MODEL}" -d "emoji_random0_seed0"
process/tweet_hate.py CHANGED
@@ -1,37 +1,75 @@
1
  import json
2
  import os
3
  from random import shuffle, seed
 
4
 
 
 
5
 
6
- with open("data/tweet_hate/test.jsonl") as f:
7
- test = [json.loads(i) for i in f if len(i)]
8
- with open("data/tweet_hate/test_1.jsonl") as f:
9
- test_1 = [json.loads(i) for i in f if len(i)]
10
- with open("data/tweet_hate/test_2.jsonl") as f:
11
- test_2 = [json.loads(i) for i in f if len(i)]
12
- with open("data/tweet_hate/test_3.jsonl") as f:
13
- test_3 = [json.loads(i) for i in f if len(i)]
14
- with open("data/tweet_hate/test_4.jsonl") as f:
15
- test_4 = [json.loads(i) for i in f if len(i)]
16
- with open("data/tweet_hate/train.jsonl") as f:
17
- train = [json.loads(i) for i in f if len(i)]
18
- with open("data/tweet_hate/validation.jsonl") as f:
19
- validation = [json.loads(i) for i in f if len(i)]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
- n_train = len(train)
22
- n_validation = len(validation)
23
  n_test = int(len(test)/4)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
 
26
  def sampler(dataset_test, r_seed):
27
  seed(r_seed)
28
  shuffle(dataset_test)
29
  shuffle(train)
30
- shuffle(validation)
31
  test_tr = dataset_test[:int(n_train / 2)]
32
  test_vl = dataset_test[int(n_train / 2): int(n_train / 2) + int(n_validation / 2)]
33
  new_train = test_tr + train[:n_train - len(test_tr)]
34
- new_validation = test_vl + validation[:n_validation - len(test_vl)]
35
  return new_train, new_validation
36
 
37
  id2test = {n: t for n, t in enumerate([test_1, test_2, test_3, test_4])}
 
1
  import json
2
  import os
3
  from random import shuffle, seed
4
+ import pandas as pd
5
 
6
+ with open("data/tweet_hate/full.jsonl") as f:
7
+ data = [json.loads(i) for i in f if len(i)]
8
 
9
+ df = pd.DataFrame(data)
10
+ df.pop("source")
11
+ df["date_dt"] = pd.to_datetime(df.date)
12
+ df = df.sort_values(by="date_dt")
13
+ dist_date = df.groupby("date_dt").size()
14
+ total_n = len(df)
15
+ n = 0
16
+ while True:
17
+ n += 1
18
+ if dist_date[:n].sum() > total_n/2:
19
+ break
20
+ split_date = dist_date.index[n]
21
+ print(split_date)
22
+
23
+ train = df[df["date_dt"] <= split_date]
24
+ test = df[df["date_dt"] > split_date]
25
+ print(train.date_dt.min(), train.date_dt.max())
26
+ print(test.date_dt.min(), test.date_dt.max())
27
+
28
+ train.pop("date_dt")
29
+ test.pop("date_dt")
30
+ train = list(train.T.to_dict().values())
31
+ test = list(test.T.to_dict().values())
32
+
33
+ seed(42)
34
+ shuffle(train)
35
+ shuffle(test)
36
+ valid = train[:int(len(train)*0.2)]
37
+ train = train[len(valid):]
38
 
 
 
39
  n_test = int(len(test)/4)
40
+ n_train = len(train)
41
+ n_validation = len(valid)
42
+ test_1 = test[:n_test]
43
+ test_2 = test[n_test:n_test*2]
44
+ test_3 = test[n_test*2:n_test*3]
45
+ test_4 = test[n_test*3:]
46
+
47
+ os.makedirs("data/tweet_hate", exist_ok=True)
48
+ with open("data/tweet_hate/test.jsonl", "w") as f:
49
+ f.write("\n".join([json.dumps(i) for i in test]))
50
+ with open("data/tweet_hate/test_1.jsonl", "w") as f:
51
+ f.write("\n".join([json.dumps(i) for i in test_1]))
52
+ with open("data/tweet_hate/test_2.jsonl", "w") as f:
53
+ f.write("\n".join([json.dumps(i) for i in test_2]))
54
+ with open("data/tweet_hate/test_3.jsonl", "w") as f:
55
+ f.write("\n".join([json.dumps(i) for i in test_3]))
56
+ with open("data/tweet_hate/test_4.jsonl", "w") as f:
57
+ f.write("\n".join([json.dumps(i) for i in test_4]))
58
+ with open("data/tweet_hate/train.jsonl", "w") as f:
59
+ f.write("\n".join([json.dumps(i) for i in train]))
60
+ with open("data/tweet_hate/validation.jsonl", "w") as f:
61
+ f.write("\n".join([json.dumps(i) for i in valid]))
62
 
63
 
64
  def sampler(dataset_test, r_seed):
65
  seed(r_seed)
66
  shuffle(dataset_test)
67
  shuffle(train)
68
+ shuffle(valid)
69
  test_tr = dataset_test[:int(n_train / 2)]
70
  test_vl = dataset_test[int(n_train / 2): int(n_train / 2) + int(n_validation / 2)]
71
  new_train = test_tr + train[:n_train - len(test_tr)]
72
+ new_validation = test_vl + valid[:n_validation - len(test_vl)]
73
  return new_train, new_validation
74
 
75
  id2test = {n: t for n, t in enumerate([test_1, test_2, test_3, test_4])}
process/tweet_nerd.py CHANGED
@@ -48,20 +48,20 @@ test_1 = test[:n_test]
48
  test_2 = test[n_test:n_test*2]
49
  test_3 = test[n_test*2:n_test*3]
50
  test_4 = test[n_test*3:]
51
- os.makedirs("data/tweet_hate", exist_ok=True)
52
- with open("data/tweet_hate/test.jsonl", "w") as f:
53
  f.write("\n".join([json.dumps(i) for i in test]))
54
- with open("data/tweet_hate/test_1.jsonl", "w") as f:
55
  f.write("\n".join([json.dumps(i) for i in test_1]))
56
- with open("data/tweet_hate/test_2.jsonl", "w") as f:
57
  f.write("\n".join([json.dumps(i) for i in test_2]))
58
- with open("data/tweet_hate/test_3.jsonl", "w") as f:
59
  f.write("\n".join([json.dumps(i) for i in test_3]))
60
- with open("data/tweet_hate/test_4.jsonl", "w") as f:
61
  f.write("\n".join([json.dumps(i) for i in test_4]))
62
- with open("data/tweet_hate/train.jsonl", "w") as f:
63
  f.write("\n".join([json.dumps(i) for i in train]))
64
- with open("data/tweet_hate/validation.jsonl", "w") as f:
65
  f.write("\n".join([json.dumps(i) for i in valid]))
66
 
67
 
 
48
  test_2 = test[n_test:n_test*2]
49
  test_3 = test[n_test*2:n_test*3]
50
  test_4 = test[n_test*3:]
51
+ os.makedirs("data/tweet_nerd", exist_ok=True)
52
+ with open("data/tweet_nerd/test.jsonl", "w") as f:
53
  f.write("\n".join([json.dumps(i) for i in test]))
54
+ with open("data/tweet_nerd/test_1.jsonl", "w") as f:
55
  f.write("\n".join([json.dumps(i) for i in test_1]))
56
+ with open("data/tweet_nerd/test_2.jsonl", "w") as f:
57
  f.write("\n".join([json.dumps(i) for i in test_2]))
58
+ with open("data/tweet_nerd/test_3.jsonl", "w") as f:
59
  f.write("\n".join([json.dumps(i) for i in test_3]))
60
+ with open("data/tweet_nerd/test_4.jsonl", "w") as f:
61
  f.write("\n".join([json.dumps(i) for i in test_4]))
62
+ with open("data/tweet_nerd/train.jsonl", "w") as f:
63
  f.write("\n".join([json.dumps(i) for i in train]))
64
+ with open("data/tweet_nerd/validation.jsonl", "w") as f:
65
  f.write("\n".join([json.dumps(i) for i in valid]))
66
 
67
 
tweet_temporal_shift.py CHANGED
@@ -2,7 +2,7 @@
2
  import json
3
  import datasets
4
 
5
- _VERSION = "1.1.0"
6
  _TWEET_TEMPORAL_DESCRIPTION = """"""
7
  _TWEET_TEMPORAL_CITATION = """"""
8
  _TWEET_TOPIC_DESCRIPTION = """
@@ -115,7 +115,7 @@ class TweetTemporalShift(datasets.GeneratorBasedBuilder):
115
  name="hate_temporal",
116
  description=_TWEET_HATE_DESCRIPTION,
117
  citation=_TWEET_HATE_CITATION,
118
- features=["text", "gold_label_binary", "date", "id", "source"],
119
  data_url=f"{_ROOT_URL}/tweet_hate",
120
  ),
121
  TweetTemporalShiftConfig(
@@ -168,7 +168,7 @@ class TweetTemporalShift(datasets.GeneratorBasedBuilder):
168
  name=f"hate_random{i}_seed{s}",
169
  description=_TWEET_HATE_DESCRIPTION,
170
  citation=_TWEET_HATE_CITATION,
171
- features=["text", "gold_label_binary", "date", "id", "source"],
172
  data_url=f"{_ROOT_URL}/tweet_hate_test{i}_seed{s}",
173
  ),
174
  TweetTemporalShiftConfig(
@@ -224,7 +224,6 @@ class TweetTemporalShift(datasets.GeneratorBasedBuilder):
224
  features["gold_label_binary"] = datasets.Value("int32")
225
  features["date"] = datasets.Value("string")
226
  features["id"] = datasets.Value("string")
227
- features["source"] = datasets.Value("int32")
228
  elif "emoji" in self.config.name:
229
  features["text"] = datasets.Value("string")
230
  features["date"] = datasets.Value("string")
 
2
  import json
3
  import datasets
4
 
5
+ _VERSION = "1.1.1"
6
  _TWEET_TEMPORAL_DESCRIPTION = """"""
7
  _TWEET_TEMPORAL_CITATION = """"""
8
  _TWEET_TOPIC_DESCRIPTION = """
 
115
  name="hate_temporal",
116
  description=_TWEET_HATE_DESCRIPTION,
117
  citation=_TWEET_HATE_CITATION,
118
+ features=["text", "gold_label_binary", "date", "id"],
119
  data_url=f"{_ROOT_URL}/tweet_hate",
120
  ),
121
  TweetTemporalShiftConfig(
 
168
  name=f"hate_random{i}_seed{s}",
169
  description=_TWEET_HATE_DESCRIPTION,
170
  citation=_TWEET_HATE_CITATION,
171
+ features=["text", "gold_label_binary", "date", "id"],
172
  data_url=f"{_ROOT_URL}/tweet_hate_test{i}_seed{s}",
173
  ),
174
  TweetTemporalShiftConfig(
 
224
  features["gold_label_binary"] = datasets.Value("int32")
225
  features["date"] = datasets.Value("string")
226
  features["id"] = datasets.Value("string")
 
227
  elif "emoji" in self.config.name:
228
  features["text"] = datasets.Value("string")
229
  features["date"] = datasets.Value("string")