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.

33 lines
1.5 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. from django.urls import path
  2. from .views import IndexView
  3. from .views import ProjectView, DatasetView, DataUpload, LabelView, StatsView, GuidelineView
  4. from .views import ProjectsView, DataDownload, DataDownloadFile
  5. from .views import DemoTextClassification, DemoNamedEntityRecognition, DemoTranslation
  6. urlpatterns = [
  7. path('', IndexView.as_view(), name='index'),
  8. path('projects/', ProjectsView.as_view(), name='projects'),
  9. path('projects/<int:project_id>/download',
  10. DataDownload.as_view(), name='download'),
  11. path('projects/<int:project_id>/download_file',
  12. DataDownloadFile.as_view(), name='download_file'),
  13. path('projects/<int:project_id>/',
  14. ProjectView.as_view(), name='annotation'),
  15. path('projects/<int:project_id>/docs/',
  16. DatasetView.as_view(), name='dataset'),
  17. path('projects/<int:project_id>/docs/create',
  18. DataUpload.as_view(), name='upload'),
  19. path('projects/<int:project_id>/labels/',
  20. LabelView.as_view(), name='label-management'),
  21. path('projects/<int:project_id>/stats/',
  22. StatsView.as_view(), name='stats'),
  23. path('projects/<int:project_id>/guideline/',
  24. GuidelineView.as_view(), name='guideline'),
  25. path('demo/text-classification/',
  26. DemoTextClassification.as_view(), name='demo-text-classification'),
  27. path('demo/named-entity-recognition/',
  28. DemoNamedEntityRecognition.as_view(), name='demo-named-entity-recognition'),
  29. path('demo/translation/', DemoTranslation.as_view(), name='demo-translation'),
  30. ]