Skip to content

Commit c910fad

Browse files
committed
added NER tool
1 parent 021d11b commit c910fad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

labelbox/schema/ontology_generator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
'''
22
TODO
33
maybe 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

86
from 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

0 commit comments

Comments
 (0)