Skip to content

AnnotationTool

from_config(dataset_name, config_file, verbose=False) classmethod

Parameters:

Name Type Description Default
dataset_name str

e.g. 'strangnas_test'

required
config_file str

path to config file

required
verbose bool

output

False

download(project_name, verbose=False)

download data from project to file_path f"{Store.get_path()}/datasets/<dataset_name>/<project_name>.jsonl"

Parameters:

Name Type Description Default
project_name str

e.g. 'batch_1'

required
verbose bool

output

False

get_file_path(project_name)

get path of local file (nerblackbox format) that corresponds to dataset_name and project_name

Parameters:

Name Type Description Default
project_name str

e.g. 'batch_1'

required

Returns:

Name Type Description
file_path str

e.g. f"{Store.get_path()}/datasets//batch_1.jsonl"

upload(project_name, verbose=False)

upload data from file_path f"{Store.get_path()}/datasets/<dataset_name>/<project_name>.jsonl" to project

Parameters:

Name Type Description Default
project_name str

e.g. 'batch_2'

required
verbose bool

output

False