forked from Inist-CNRS/web-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.hurl
146 lines (142 loc) · 4.12 KB
/
tests.hurl
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
POST {{host}}/v1/tagger?indent=true
content-type: application/json
[
{
"id": "1",
"value": "Python is widely used in data science. Bob R. uses it ; he works for the CNRS"
},
{
"id": "2",
"value": "Jean Dupont assiste àu festival de Cannes sur la côte d'Azur."
}
]
HTTP 200
[{
"id": "1",
"value": {
"PER": [
"Bob R."
],
"LOC": [],
"ORG": [
"CNRS"
],
"MISC": [
"Python"
]
}
},
{
"id": "2",
"value": {
"PER": [
"Jean Dupont"
],
"LOC": [
"côte d'Azur"
],
"ORG": [],
"MISC": [
"festival de Cannes"
]
}
}]
POST {{host}}/v1/tagger-en?indent=true
content-type: application/json
[
{
"id": 1,
"value": "On September 15th, 2023, the renowned artist Sarah Blake unveiled Whispers of the Wind, at the Metropolitan Museum of Art in New York City. The event attracted people from all over the world, including the famous author Emily Green and several political figures from the United Nations. The museum, located on Fifth Avenue, is known for its extensive collection of European paintings. During the unveiling, a new highway connecting the city to Washington, D.C., was also announced, funded by a grant of $5 million from the federal government. This new project, expected to be completed by 2025, promises to reduce travel time by 30%. Sarah's masterpiece, inspired by the serene landscapes of the Rocky Mountains, is expected to be a major attraction, drawing art enthusiasts and tourists alike."
},
{
"id": 2,
"value":"In April 2024, a groundbreaking technology summit was held at the Silicon Valley headquarters of FutureTech, attracting tech innovators and CEOs from major companies like OmniCorp and QuantumSoft. The keynote speaker, David Johnson, introduced Electra's latest product, an electric truck named CyberHauler. The summit, which lasted three days, highlighted advances in AI and green energy. Representatives from the European Union were present to discuss new environmental laws aimed at reducing carbon emissions by 20% over the next decade. The summit's discussions, conducted primarily in English, also touched on the upcoming Mars mission scheduled for 2030, which aims to establish the first human colony on the Red Planet. The event concluded with a gala dinner at the Golden Gate Bridge, with a spectacular view of the Pacific Ocean."
}
]
HTTP 200
[{
"id": 1,
"value": {
"PER": [
"Sarah Blake",
"Emily Green",
"Sarah"
],
"LOC": [
"New York City",
"Washington",
"D.C.",
"the Rocky Mountains"
],
"ORG": [
"the Metropolitan Museum of Art",
"the United Nations"
],
"DATE": [
"September 15th,",
"2023",
"2025"
],
"EVENT": [],
"FAC": [
"Fifth Avenue"
],
"LANGUAGE": [],
"LAW": [],
"MONEY": [
"$5 million"
],
"NORP": [
"European"
],
"PRODUCT": [],
"QUANTITY": [
"30%"
],
"WORK_OF_ART": []
}
},
{
"id": 2,
"value": {
"PER": [
"David Johnson",
"CyberHauler"
],
"LOC": [
"the Silicon Valley",
"Mars",
"the Red Planet",
"the Pacific Ocean"
],
"ORG": [
"FutureTech",
"OmniCorp",
"QuantumSoft",
"Electra",
"AI",
"the European Union"
],
"DATE": [
"April 2024",
"three days",
"the next decade",
"2030"
],
"EVENT": [],
"FAC": [
"the Golden Gate Bridge"
],
"LANGUAGE": [
"English"
],
"LAW": [],
"MONEY": [],
"NORP": [],
"PRODUCT": [],
"QUANTITY": [
"20%"
],
"WORK_OF_ART": []
}
}]