reflexive 1.0.20__tar.gz → 1.1.0__tar.gz
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-1.0.20/reflexive.egg-info → reflexive-1.1.0}/PKG-INFO +2 -2
- {reflexive-1.0.20 → reflexive-1.1.0}/reflexive/visualise.py +7 -7
- {reflexive-1.0.20 → reflexive-1.1.0/reflexive.egg-info}/PKG-INFO +2 -2
- {reflexive-1.0.20 → reflexive-1.1.0}/setup.cfg +1 -1
- {reflexive-1.0.20 → reflexive-1.1.0}/LICENSE +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/LICENSE.txt +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/MANIFEST.in +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/README.md +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/pyproject.toml +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/reflexive/__init__.py +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/reflexive/analyse.py +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/reflexive/cfg.py +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/reflexive/session.py +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/reflexive/util.py +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/reflexive.egg-info/SOURCES.txt +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/reflexive.egg-info/dependency_links.txt +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/reflexive.egg-info/top_level.txt +0 -0
- {reflexive-1.0.20 → reflexive-1.1.0}/tests/test_reflexive.py +0 -0
|
@@ -139,11 +139,11 @@ class Display:
|
|
|
139
139
|
if rr['Score']>0.5:
|
|
140
140
|
ent_type = rr['Type']
|
|
141
141
|
if ent_type in ['VR','ER']:
|
|
142
|
-
label = "
|
|
142
|
+
label = "NR"
|
|
143
143
|
elif ent_type in ['EP','EV']:
|
|
144
|
-
label = "
|
|
144
|
+
label = "EP"
|
|
145
145
|
elif ent_type in ['CN','AF']:
|
|
146
|
-
label = "
|
|
146
|
+
label = "AF"
|
|
147
147
|
else:
|
|
148
148
|
label = ent_type
|
|
149
149
|
new_rrs.setdefault(label,[]).append((rr['BeginOffset'],rr['EndOffset']))
|
|
@@ -154,10 +154,10 @@ class Display:
|
|
|
154
154
|
for sr in syntax_results:
|
|
155
155
|
pos = sr['PartOfSpeech']
|
|
156
156
|
if pos['Score']>0.99:
|
|
157
|
-
if pos['Tag'] in ['NOUN','ADJ']:
|
|
158
|
-
offsets.setdefault("
|
|
159
|
-
if pos['Tag'] in ['ADV','VERB']:
|
|
160
|
-
|
|
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']))
|
|
161
161
|
return self.concatenate_offsets(offsets)
|
|
162
162
|
|
|
163
163
|
def concatenate_offsets(self,offsets:dict):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|