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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: reflexive
3
- Version: 1.0.20
3
+ Version: 1.1.0
4
4
  Summary: Supports AWS Reflexive Expressions Analysis
5
5
  Home-page: https://github.com/nlytx/reflexive
6
6
  Author: Andrew Gibson
@@ -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 = "VR_ER"
142
+ label = "NR"
143
143
  elif ent_type in ['EP','EV']:
144
- label = "EP_EV"
144
+ label = "EP"
145
145
  elif ent_type in ['CN','AF']:
146
- label = "AF_CN"
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("EO",[]).append((sr['BeginOffset'],sr['EndOffset']))
159
- if pos['Tag'] in ['ADV','VERB']:
160
- offsets.setdefault("EA",[]).append((sr['BeginOffset'],sr['EndOffset']))
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):
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: reflexive
3
- Version: 1.0.20
3
+ Version: 1.1.0
4
4
  Summary: Supports AWS Reflexive Expressions Analysis
5
5
  Home-page: https://github.com/nlytx/reflexive
6
6
  Author: Andrew Gibson
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = reflexive
3
- version = 1.0.20
3
+ version = 1.1.0
4
4
  author = Andrew Gibson
5
5
  author_email = andrew@nlytx.io
6
6
  description = Supports AWS Reflexive Expressions Analysis
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes