reflexive 1.0.19__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.19
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
@@ -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 = "VR_ER"
142
+ label = "NR"
142
143
  elif ent_type in ['EP','EV']:
143
- label = "EP_EV"
144
+ label = "EP"
144
145
  elif ent_type in ['CN','AF']:
145
- label = "AF_CN"
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("EO",[]).append((sr['BeginOffset'],sr['EndOffset']))
158
- if pos['Tag'] in ['ADV','VERB']:
159
- 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']))
160
161
  return self.concatenate_offsets(offsets)
161
162
 
162
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.19
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.19
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