1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| export const textWithDualTaxonomyConfig = `<View>
| <Text name="text" value="$text"/>
| <Taxonomy name="category" toName="text" labeling="true">
| <Choice value="Person"/>
| <Choice value="Organization"/>
| <Choice value="Location"/>
| <Choice value="Event"/>
| </Taxonomy>
| <Taxonomy name="sentiment" toName="text" labeling="true">
| <Choice value="Positive"/>
| <Choice value="Negative"/>
| <Choice value="Neutral"/>
| </Taxonomy>
| </View>`;
|
| export const simpleTextData = {
| text: "Apple Inc. is a technology company headquartered in Cupertino, California. The company was founded by Steve Jobs in 1976.",
| };
|
| export const expectedResult = [
| {
| id: "taxonomy_category_1",
| type: "taxonomy",
| value: {
| taxonomy: [["Organization"]],
| },
| origin: "manual",
| to_name: "text",
| from_name: "category",
| },
| {
| id: "taxonomy_sentiment_1",
| type: "taxonomy",
| value: {
| taxonomy: [["Positive"]],
| },
| origin: "manual",
| to_name: "text",
| from_name: "sentiment",
| },
| ];
|
|