File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 15
15
'audiotranscription' ,
16
16
'pointannotation' ,
17
17
'cuboidannotation' ,
18
- 'segmentannotation'
18
+ 'segmentannotation' ,
19
+ 'namedentityrecognition'
19
20
]
20
21
SCALE_ENDPOINT = 'https://api.scale.com/v1/'
21
22
DEFAULT_LIMIT = 100
Original file line number Diff line number Diff line change @@ -209,6 +209,17 @@ def test_audiotranscription_fail2():
209
209
attachment = 'some_non_url' )
210
210
211
211
212
+ def test_namedentityrecognition_ok ():
213
+ return client .create_namedentityrecognition_task (
214
+ callback_url = 'http://www.example.com/callback' ,
215
+ instruction = 'Do the objects in these images have the same pattern?' ,
216
+ text = 'Example text to label with NER tool' ,
217
+ labels = [{
218
+ 'name' : 'Label_A' ,
219
+ 'description' : 'the first label' ,
220
+ }])
221
+
222
+
212
223
def test_unicode_ok ():
213
224
task = client .create_categorization_task (
214
225
callback_url = 'http://www.example.com/callback' ,
You can’t perform that action at this time.
0 commit comments