File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11'''
22TODO
33maybe there should be a way to check if a project has an existing ontology, and that it would overwrite it?
4-
5- in the future: work on adding NER capability for tool types (?)
64'''
75
86from dataclasses import dataclass , field
@@ -244,13 +242,15 @@ def print_stuff():
244242 nested_class = tool .add_nested_class (class_type = Classification .Type .DROPDOWN , instructions = "nested class" )
245243 dropdown_option = nested_class .add_option (value = "answer" )
246244
245+ tool = o .add_tool (tool = Tool .Type .NER , name = "NER value" )
246+
247247 #to old existing project
248248 frontend = list (client .get_labeling_frontends (where = LabelingFrontend .name == "Editor" ))[0 ]
249249 project .setup (frontend , o .build (for_different_project = False ))
250250
251251 #to a different project
252- other_project = client .get_project ("ckkzzw5qk1yje0712uqjn0oqs" )
253- other_project .setup (frontend , o .build (for_different_project = True ))
252+ # other_project = client.get_project("ckkzzw5qk1yje0712uqjn0oqs")
253+ # other_project.setup(frontend, o.build(for_different_project=True))
254254
255255
256256
You can’t perform that action at this time.
0 commit comments