reflexive 1.0.19__py3-none-any.whl → 1.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- reflexive/visualise.py +8 -7
- {reflexive-1.0.19.dist-info → reflexive-1.1.0.dist-info}/METADATA +2 -2
- reflexive-1.1.0.dist-info/RECORD +12 -0
- {reflexive-1.0.19.dist-info → reflexive-1.1.0.dist-info}/WHEEL +1 -1
- reflexive-1.0.19.dist-info/RECORD +0 -12
- {reflexive-1.0.19.dist-info → reflexive-1.1.0.dist-info}/LICENSE +0 -0
- {reflexive-1.0.19.dist-info → reflexive-1.1.0.dist-info}/LICENSE.txt +0 -0
- {reflexive-1.0.19.dist-info → reflexive-1.1.0.dist-info}/top_level.txt +0 -0
reflexive/visualise.py
CHANGED
|
@@ -83,6 +83,7 @@ class Display:
|
|
|
83
83
|
#pseudonym = record['pseudonym']
|
|
84
84
|
#point_round = record['point_round']
|
|
85
85
|
#title = f"{pseudonym} ({point_round}) - {timestamp}"
|
|
86
|
+
title = f"Idx_{record.name}"
|
|
86
87
|
tags = self.config.display_priority_tags
|
|
87
88
|
text = record['text']
|
|
88
89
|
reflexive_offsets = record['reflexive_offsets']
|
|
@@ -138,11 +139,11 @@ class Display:
|
|
|
138
139
|
if rr['Score']>0.5:
|
|
139
140
|
ent_type = rr['Type']
|
|
140
141
|
if ent_type in ['VR','ER']:
|
|
141
|
-
label = "
|
|
142
|
+
label = "NR"
|
|
142
143
|
elif ent_type in ['EP','EV']:
|
|
143
|
-
label = "
|
|
144
|
+
label = "EP"
|
|
144
145
|
elif ent_type in ['CN','AF']:
|
|
145
|
-
label = "
|
|
146
|
+
label = "AF"
|
|
146
147
|
else:
|
|
147
148
|
label = ent_type
|
|
148
149
|
new_rrs.setdefault(label,[]).append((rr['BeginOffset'],rr['EndOffset']))
|
|
@@ -153,10 +154,10 @@ class Display:
|
|
|
153
154
|
for sr in syntax_results:
|
|
154
155
|
pos = sr['PartOfSpeech']
|
|
155
156
|
if pos['Score']>0.99:
|
|
156
|
-
if pos['Tag'] in ['NOUN','ADJ']:
|
|
157
|
-
offsets.setdefault("
|
|
158
|
-
if pos['Tag'] in ['ADV','VERB']:
|
|
159
|
-
|
|
157
|
+
if pos['Tag'] in ['NOUN','ADJ']: # TE - Topic Entity
|
|
158
|
+
offsets.setdefault("TE",[]).append((sr['BeginOffset'],sr['EndOffset']))
|
|
159
|
+
# if pos['Tag'] in ['ADV','VERB']:
|
|
160
|
+
# offsets.setdefault("EA",[]).append((sr['BeginOffset'],sr['EndOffset']))
|
|
160
161
|
return self.concatenate_offsets(offsets)
|
|
161
162
|
|
|
162
163
|
def concatenate_offsets(self,offsets:dict):
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
reflexive/__init__.py,sha256=Ke3gGqrVgPP2IRgifljQL8Ep3qVuuOf4LgZUkxdJQ2k,119
|
|
2
|
+
reflexive/analyse.py,sha256=UzWwgjAFNjeWFkCQ2o99g2vWajf17_OtSq4dFCvuPYU,17489
|
|
3
|
+
reflexive/cfg.py,sha256=Ges35G234P2lvOQHgPZQae5hMSOGyBsmp1bY_yQEKkk,4303
|
|
4
|
+
reflexive/session.py,sha256=MbqwTsYTgq_e_gw3mb1eRv6USs-zZ2cTCrvUNWuKfAQ,10067
|
|
5
|
+
reflexive/util.py,sha256=WQ1oyzDi1i8wQ6IBwBPk6IFy07YKhg-Ug2FsOGVJRJQ,3649
|
|
6
|
+
reflexive/visualise.py,sha256=_OW4pRYp-SqANbP-9jVITqsAZn05aafzVSeMP6NqopQ,6520
|
|
7
|
+
reflexive-1.1.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
8
|
+
reflexive-1.1.0.dist-info/LICENSE.txt,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
9
|
+
reflexive-1.1.0.dist-info/METADATA,sha256=CU0LS9NoUn50GNwgh0DEI8FOXLaziEfCnOYvLjE7MkE,12037
|
|
10
|
+
reflexive-1.1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
11
|
+
reflexive-1.1.0.dist-info/top_level.txt,sha256=pOMr-QGleRBRCFBozgvM-UUUmOjD_-naJfu1522E2V8,10
|
|
12
|
+
reflexive-1.1.0.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
reflexive/__init__.py,sha256=Ke3gGqrVgPP2IRgifljQL8Ep3qVuuOf4LgZUkxdJQ2k,119
|
|
2
|
-
reflexive/analyse.py,sha256=UzWwgjAFNjeWFkCQ2o99g2vWajf17_OtSq4dFCvuPYU,17489
|
|
3
|
-
reflexive/cfg.py,sha256=Ges35G234P2lvOQHgPZQae5hMSOGyBsmp1bY_yQEKkk,4303
|
|
4
|
-
reflexive/session.py,sha256=MbqwTsYTgq_e_gw3mb1eRv6USs-zZ2cTCrvUNWuKfAQ,10067
|
|
5
|
-
reflexive/util.py,sha256=WQ1oyzDi1i8wQ6IBwBPk6IFy07YKhg-Ug2FsOGVJRJQ,3649
|
|
6
|
-
reflexive/visualise.py,sha256=eWqS1ueZAk9jzFb84s2SCcDUShAW_EdF48-K6HJea9w,6468
|
|
7
|
-
reflexive-1.0.19.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
8
|
-
reflexive-1.0.19.dist-info/LICENSE.txt,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
9
|
-
reflexive-1.0.19.dist-info/METADATA,sha256=9MWS46qIMVuSK4FQbL_5TOJxY0msRTQKUzisJp4Fs2I,12038
|
|
10
|
-
reflexive-1.0.19.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
11
|
-
reflexive-1.0.19.dist-info/top_level.txt,sha256=pOMr-QGleRBRCFBozgvM-UUUmOjD_-naJfu1522E2V8,10
|
|
12
|
-
reflexive-1.0.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|