@bigfootai/bigfoot-types 2.9.2 → 2.9.3
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.
- package/model.ts +62 -1
- package/package.json +1 -1
package/model.ts
CHANGED
|
@@ -115,6 +115,66 @@ export enum ProcessingStage {
|
|
|
115
115
|
Failed = 'failed',
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
// Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types-version-2
|
|
119
|
+
export enum EntityType {
|
|
120
|
+
Date = 'Date',
|
|
121
|
+
Duration = 'Duration',
|
|
122
|
+
EmailAddress = 'EmailAddress',
|
|
123
|
+
Facility = 'Facility',
|
|
124
|
+
GeographicFeature = 'GeographicFeature',
|
|
125
|
+
Hashtag = 'Hashtag',
|
|
126
|
+
IPAddress = 'IPAddress',
|
|
127
|
+
JobTitle = 'JobTitle',
|
|
128
|
+
Location = 'Location',
|
|
129
|
+
Measure = 'Measure',
|
|
130
|
+
Money = 'Money',
|
|
131
|
+
Number = 'Number',
|
|
132
|
+
Ordinal = 'Ordinal',
|
|
133
|
+
Organization = 'Organization',
|
|
134
|
+
Percent = 'Percent',
|
|
135
|
+
Person = 'Person',
|
|
136
|
+
PhoneNumber = 'PhoneNumber',
|
|
137
|
+
Time = 'Time',
|
|
138
|
+
TwitterHandle = 'TwitterHandle',
|
|
139
|
+
URL = 'URL',
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-relation-types-version-2
|
|
143
|
+
export enum RelationType {
|
|
144
|
+
AffiliatedWith = 'affiliatedWith',
|
|
145
|
+
BasedIn = 'basedIn',
|
|
146
|
+
BornAt = 'bornAt',
|
|
147
|
+
BornOn = 'bornOn',
|
|
148
|
+
ClientOf = 'clientOf',
|
|
149
|
+
Colleague = 'colleague',
|
|
150
|
+
Competitor = 'competitor',
|
|
151
|
+
ContactOf = 'contactOf',
|
|
152
|
+
DiedAt = 'diedAt',
|
|
153
|
+
DiedOn = 'diedOn',
|
|
154
|
+
DissolvedOn = 'dissolvedOn',
|
|
155
|
+
EducatedAt = 'educatedAt',
|
|
156
|
+
EmployedBy = 'employedBy',
|
|
157
|
+
FoundedOn = 'foundedOn',
|
|
158
|
+
FounderOf = 'founderOf',
|
|
159
|
+
LocatedAt = 'locatedAt',
|
|
160
|
+
ManagerOf = 'managerOf',
|
|
161
|
+
MemberOf = 'memberOf',
|
|
162
|
+
OwnerOf = 'ownerOf',
|
|
163
|
+
ParentOf = 'parentOf',
|
|
164
|
+
Partner = 'partner',
|
|
165
|
+
PartOf = 'partOf',
|
|
166
|
+
PartOfMany = 'partOfMany',
|
|
167
|
+
PopulationOf = 'populationOf',
|
|
168
|
+
MeasureOf = 'measureOf',
|
|
169
|
+
Relative = 'relative',
|
|
170
|
+
ResidesIn = 'residesIn',
|
|
171
|
+
ShareholdersOf = 'shareholdersOf',
|
|
172
|
+
SiblingOf = 'siblingOf',
|
|
173
|
+
SpokespersonFor = 'spokespersonFor',
|
|
174
|
+
SpouseOf = 'spouseOf',
|
|
175
|
+
SubsidiaryOf = 'subsidiaryOf',
|
|
176
|
+
}
|
|
177
|
+
|
|
118
178
|
export interface Mark {
|
|
119
179
|
type: string;
|
|
120
180
|
attrs?: Map<string, string>;
|
|
@@ -186,7 +246,7 @@ export interface ArgumentEntry {
|
|
|
186
246
|
}
|
|
187
247
|
|
|
188
248
|
export interface RelationEntry {
|
|
189
|
-
|
|
249
|
+
type: RelationType;
|
|
190
250
|
score: number;
|
|
191
251
|
highlight: Highlight;
|
|
192
252
|
arguments: ArgumentEntry[];
|
|
@@ -194,6 +254,7 @@ export interface RelationEntry {
|
|
|
194
254
|
|
|
195
255
|
export interface EntityEntry extends MachineLearningEntry {
|
|
196
256
|
name: string;
|
|
257
|
+
type: EntityType;
|
|
197
258
|
score: number;
|
|
198
259
|
}
|
|
199
260
|
|