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.

32 lines
1.5 KiB

6 years ago
3 years ago
6 years ago
6 years ago
6 years ago
  1. from django.urls import path
  2. from .views import (DataDownload, DatasetView, DataUpload,
  3. DemoNamedEntityRecognition, DemoTextClassification,
  4. DemoTranslation, GuidelineView, IndexView, LabelView,
  5. ProjectsView, ProjectView, StatsView, UsersView)
  6. urlpatterns = [
  7. path('', IndexView.as_view(), name='index'),
  8. path('projects/', ProjectsView.as_view(), name='projects'),
  9. path('projects/<int:project_id>/docs/download',
  10. DataDownload.as_view(), name='download'),
  11. path('projects/<int:project_id>/',
  12. ProjectView.as_view(), name='annotation'),
  13. path('projects/<int:project_id>/docs/',
  14. DatasetView.as_view(), name='dataset'),
  15. path('projects/<int:project_id>/docs/create',
  16. DataUpload.as_view(), name='upload'),
  17. path('projects/<int:project_id>/labels/',
  18. LabelView.as_view(), name='label-management'),
  19. path('projects/<int:project_id>/stats/',
  20. StatsView.as_view(), name='stats'),
  21. path('projects/<int:project_id>/guideline/',
  22. GuidelineView.as_view(), name='guideline'),
  23. path('projects/<int:project_id>/users/',
  24. UsersView.as_view(), name='users'),
  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. ]