mirror of https://github.com/doccano/doccano.git
Hironsan
2 years ago
3 changed files with 24 additions and 24 deletions
Split View
Diff Options
-
6backend/auto_labeling/tests/test_views.py
-
24backend/auto_labeling/urls.py
-
18backend/auto_labeling/views.py
@ -1,53 +1,53 @@ |
|||
from django.urls import path |
|||
|
|||
from .views import (AutoLabelingConfigDetail, AutoLabelingConfigTest, AutoLabelingAnnotation, AutoLabelingMappingTest, |
|||
AutoLabelingTemplateListAPI, AutoLabelingTemplateDetailAPI, AutoLabelingConfigList, |
|||
AutoLabelingConfigParameterTest, AutoLabelingTemplateTest) |
|||
from .views import (ConfigDetail, FullPipelineTesting, AutomatedDataLabeling, LabelMapperTesting, |
|||
TemplateListAPI, TemplateDetailAPI, ConfigList, |
|||
RestAPIRequestTesting, LabelExtractorTesting) |
|||
|
|||
urlpatterns = [ |
|||
path( |
|||
route='auto-labeling-templates', |
|||
view=AutoLabelingTemplateListAPI.as_view(), |
|||
view=TemplateListAPI.as_view(), |
|||
name='auto_labeling_templates' |
|||
), |
|||
path( |
|||
route='auto-labeling-templates/<str:option_name>', |
|||
view=AutoLabelingTemplateDetailAPI.as_view(), |
|||
view=TemplateDetailAPI.as_view(), |
|||
name='auto_labeling_template' |
|||
), |
|||
path( |
|||
route='auto-labeling-configs', |
|||
view=AutoLabelingConfigList.as_view(), |
|||
view=ConfigList.as_view(), |
|||
name='auto_labeling_configs' |
|||
), |
|||
path( |
|||
route='auto-labeling-configs/<int:config_id>', |
|||
view=AutoLabelingConfigDetail.as_view(), |
|||
view=ConfigDetail.as_view(), |
|||
name='auto_labeling_config' |
|||
), |
|||
path( |
|||
route='auto-labeling-config-testing', |
|||
view=AutoLabelingConfigTest.as_view(), |
|||
view=FullPipelineTesting.as_view(), |
|||
name='auto_labeling_config_test' |
|||
), |
|||
path( |
|||
route='examples/<int:example_id>/auto-labeling', |
|||
view=AutoLabelingAnnotation.as_view(), |
|||
view=AutomatedDataLabeling.as_view(), |
|||
name='auto_labeling_annotation' |
|||
), |
|||
path( |
|||
route='auto-labeling-parameter-testing', |
|||
view=AutoLabelingConfigParameterTest.as_view(), |
|||
view=RestAPIRequestTesting.as_view(), |
|||
name='auto_labeling_parameter_testing' |
|||
), |
|||
path( |
|||
route='auto-labeling-template-testing', |
|||
view=AutoLabelingTemplateTest.as_view(), |
|||
view=LabelExtractorTesting.as_view(), |
|||
name='auto_labeling_template_test' |
|||
), |
|||
path( |
|||
route='auto-labeling-mapping-testing', |
|||
view=AutoLabelingMappingTest.as_view(), |
|||
view=LabelMapperTesting.as_view(), |
|||
name='auto_labeling_mapping_test' |
|||
) |
|||
] |
Write
Preview
Loading…
Cancel
Save