mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
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.
23 lines
758 B
23 lines
758 B
from django.contrib import admin
|
|
|
|
from .models import (Project, Seq2seqProject, SequenceLabelingProject, Tag,
|
|
TextClassificationProject)
|
|
|
|
|
|
class ProjectAdmin(admin.ModelAdmin):
|
|
list_display = ('name', 'description', 'project_type', 'random_order', 'collaborative_annotation')
|
|
ordering = ('project_type',)
|
|
search_fields = ('name',)
|
|
|
|
|
|
class TagAdmin(admin.ModelAdmin):
|
|
list_display = ('project', 'text', )
|
|
ordering = ('project', 'text', )
|
|
search_fields = ('text',)
|
|
|
|
|
|
admin.site.register(Project, ProjectAdmin)
|
|
admin.site.register(TextClassificationProject, ProjectAdmin)
|
|
admin.site.register(SequenceLabelingProject, ProjectAdmin)
|
|
admin.site.register(Seq2seqProject, ProjectAdmin)
|
|
admin.site.register(Tag, TagAdmin)
|