You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.0 KiB

  1. from django.urls import path
  2. from .views import (ConfigDetail, FullPipelineTesting, AutomatedDataLabeling, AutomatedCategoryLabeling,
  3. AutomatedSpanLabeling, LabelMapperTesting, TemplateListAPI, TemplateDetailAPI, ConfigList,
  4. RestAPIRequestTesting, LabelExtractorTesting)
  5. urlpatterns = [
  6. path(
  7. route='auto-labeling-templates',
  8. view=TemplateListAPI.as_view(),
  9. name='auto_labeling_templates'
  10. ),
  11. path(
  12. route='auto-labeling-templates/<str:option_name>',
  13. view=TemplateDetailAPI.as_view(),
  14. name='auto_labeling_template'
  15. ),
  16. path(
  17. route='auto-labeling-configs',
  18. view=ConfigList.as_view(),
  19. name='auto_labeling_configs'
  20. ),
  21. path(
  22. route='auto-labeling-configs/<int:config_id>',
  23. view=ConfigDetail.as_view(),
  24. name='auto_labeling_config'
  25. ),
  26. path(
  27. route='auto-labeling-config-testing',
  28. view=FullPipelineTesting.as_view(),
  29. name='auto_labeling_config_test'
  30. ),
  31. path(
  32. route='examples/<int:example_id>/auto-labeling',
  33. view=AutomatedDataLabeling.as_view(),
  34. name='auto_labeling_annotation'
  35. ),
  36. path(
  37. route='auto-labeling-parameter-testing',
  38. view=RestAPIRequestTesting.as_view(),
  39. name='auto_labeling_parameter_testing'
  40. ),
  41. path(
  42. route='auto-labeling-template-testing',
  43. view=LabelExtractorTesting.as_view(),
  44. name='auto_labeling_template_test'
  45. ),
  46. path(
  47. route='auto-labeling-mapping-testing',
  48. view=LabelMapperTesting.as_view(),
  49. name='auto_labeling_mapping_test'
  50. ),
  51. path(
  52. route='examples/<int:example_id>/auto-labeling/categories',
  53. view=AutomatedCategoryLabeling.as_view(),
  54. name='automated_category_labeling'
  55. ),
  56. path(
  57. route='examples/<int:example_id>/auto-labeling/spans',
  58. view=AutomatedSpanLabeling.as_view(),
  59. name='automated_span_labeling'
  60. )
  61. ]