# Path: languk/corpus/models.py
# class ExportCorpusTask(TaskRQ):
#     file_format = models.CharField(
#         max_length=5, null=False, blank=False, default="txt", choices=(("txt", "Text File"),)
#     )
#     file_compression = models.CharField(
#         max_length=5,
#         null=False,
#         blank=False,
#         default="none",
#         choices=(
#             ("none", "No compression"),
#             ("bz2", "Bzip2"),
#             ("lzma", "LZMA"),
#         ),
#     )
# 
#     corpora = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_CORPORA_CHOICES,
#         ),
#         blank=False,
#     )
# 
#     filtering = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_FILTERING_CHOICES,
#         ),
#         blank=True,
#     )
# 
#     processing = models.CharField(
#         max_length=10,
#         null=False,
#         blank=False,
#         choices=(
#             ("orig", "Original texts in markdown format"),
#             ("tokens", "Tokenized by NLP-UK lib"),
#             ("lemmas", "Lemmatized by NLP-UK lib"),
#         ),
#     )
# 
#     TASK_QUEUE = settings.QUEUE_DEFAULT
# 
#     DEFAULT_VERBOSITY = 2
#     TASK_TIMEOUT = 0
#     LOG_TO_FIELD = True
#     LOG_TO_FILE = False
# 
#     @staticmethod
#     def get_jobclass():
#         from .jobs import ExportCorpusJob
# 
#         return ExportCorpusJob
# 
# class TagWithUDPipeTask(TaskRQ):
#     corpora = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_CORPORA_CHOICES,
#         ),
#         blank=False,
#     )
# 
#     force = models.BooleanField(
#         "Tag all texts, including already tagged",
#         default=False,
#     )
# 
#     TASK_QUEUE = settings.QUEUE_DEFAULT
# 
#     DEFAULT_VERBOSITY = 2
#     TASK_TIMEOUT = 0
#     LOG_TO_FIELD = True
#     LOG_TO_FILE = False
# 
#     @staticmethod
#     def get_jobclass():
#         from .jobs import TagWithUDPipeJob
# 
#         return TagWithUDPipeJob
# 
# class BuildFreqVocabTask(TaskRQ):
#     corpora = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_CORPORA_CHOICES,
#         ),
#         blank=False,
#     )
# 
#     filtering = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_FILTERING_CHOICES,
#         ),
#         blank=True,
#         default=list
#     )
# 
#     file_format = models.CharField(
#         max_length=5, null=False, blank=False, default="csv", choices=(("csv", "CSV file"),)
#     )
#     file_compression = models.CharField(
#         max_length=5,
#         null=False,
#         blank=False,
#         default="none",
#         choices=(
#             ("none", "No compression"),
#             ("bz2", "Bzip2"),
#             ("lzma", "LZMA"),
#         ),
#     )
#     TASK_QUEUE = settings.QUEUE_DEFAULT
# 
#     DEFAULT_VERBOSITY = 2
#     TASK_TIMEOUT = 0
#     LOG_TO_FIELD = True
#     LOG_TO_FILE = False
# 
#     @staticmethod
#     def get_jobclass():
#         from .jobs import BuildFreqVocabJob
# 
#         return BuildFreqVocabJob


from django.contrib import admin
from django_task.admin import TaskAdmin
from .models import ExportCorpusTask, TagWithUDPipeTask, BuildFreqVocabTask



@admin.register(ExportCorpusTask)
class ExportCorpusTask(TaskAdmin):
    pass


@admin.register(TagWithUDPipeTask)
class TagWithUDPipeTask(TaskAdmin):
    pass


@admin.register(BuildFreqVocabTask)

# Path: languk/corpus/models.py
# class ExportCorpusTask(TaskRQ):
#     file_format = models.CharField(
#         max_length=5, null=False, blank=False, default="txt", choices=(("txt", "Text File"),)
#     )
#     file_compression = models.CharField(
#         max_length=5,
#         null=False,
#         blank=False,
#         default="none",
#         choices=(
#             ("none", "No compression"),
#             ("bz2", "Bzip2"),
#             ("lzma", "LZMA"),
#         ),
#     )
# 
#     corpora = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_CORPORA_CHOICES,
#         ),
#         blank=False,
#     )
# 
#     filtering = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_FILTERING_CHOICES,
#         ),
#         blank=True,
#     )
# 
#     processing = models.CharField(
#         max_length=10,
#         null=False,
#         blank=False,
#         choices=(
#             ("orig", "Original texts in markdown format"),
#             ("tokens", "Tokenized by NLP-UK lib"),
#             ("lemmas", "Lemmatized by NLP-UK lib"),
#         ),
#     )
# 
#     TASK_QUEUE = settings.QUEUE_DEFAULT
# 
#     DEFAULT_VERBOSITY = 2
#     TASK_TIMEOUT = 0
#     LOG_TO_FIELD = True
#     LOG_TO_FILE = False
# 
#     @staticmethod
#     def get_jobclass():
#         from .jobs import ExportCorpusJob
# 
#         return ExportCorpusJob
# 
# class TagWithUDPipeTask(TaskRQ):
#     corpora = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_CORPORA_CHOICES,
#         ),
#         blank=False,
#     )
# 
#     force = models.BooleanField(
#         "Tag all texts, including already tagged",
#         default=False,
#     )
# 
#     TASK_QUEUE = settings.QUEUE_DEFAULT
# 
#     DEFAULT_VERBOSITY = 2
#     TASK_TIMEOUT = 0
#     LOG_TO_FIELD = True
#     LOG_TO_FILE = False
# 
#     @staticmethod
#     def get_jobclass():
#         from .jobs import TagWithUDPipeJob
# 
#         return TagWithUDPipeJob
# 
# class BuildFreqVocabTask(TaskRQ):
#     corpora = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_CORPORA_CHOICES,
#         ),
#         blank=False,
#     )
# 
#     filtering = ChoiceArrayField(
#         models.CharField(
#             max_length=10,
#             null=False,
#             blank=False,
#             choices=_FILTERING_CHOICES,
#         ),
#         blank=True,
#         default=list
#     )
# 
#     file_format = models.CharField(
#         max_length=5, null=False, blank=False, default="csv", choices=(("csv", "CSV file"),)
#     )
#     file_compression = models.CharField(
#         max_length=5,
#         null=False,
#         blank=False,
#         default="none",
#         choices=(
#             ("none", "No compression"),
#             ("bz2", "Bzip2"),
#             ("lzma", "LZMA"),
#         ),
#     )
#     TASK_QUEUE = settings.QUEUE_DEFAULT
# 
#     DEFAULT_VERBOSITY = 2
#     TASK_TIMEOUT = 0
#     LOG_TO_FIELD = True
#     LOG_TO_FILE = False
# 
#     @staticmethod
#     def get_jobclass():
#         from .jobs import BuildFreqVocabJob
# 
#         return BuildFreqVocabJob


# Path: languk/corpus/admin.py
from django.contrib import admin
from django_task.admin import TaskAdmin
from .models import ExportCorpusTask, TagWithUDPipeTask, BuildFreqVocabTask




@admin.register(ExportCorpusTask)
class ExportCorpusTask(TaskAdmin):
    pass


@admin.register(TagWithUDPipeTask)
class TagWithUDPipeTask(TaskAdmin):
    pass


@admin.register(BuildFreqVocabTask)

class BuildFreqVocabTask(TaskAdmin):