diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 88ebe2bdc..8971a3faf 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -303,6 +303,7 @@ func NewFuncMap() []template.FuncMap { }, "tasks": tasks, "categories": categories, + "licenses": licenses, }} } @@ -729,6 +730,10 @@ func categories() []string { return []string{"computer_vision", "natural_language_processing", "speech_processing", "computer_vision_natural_language_processing"} } +func licenses() []string { + return []string{"MIT", "GPL", "GFDL", "Apache 2.0", "CC BY 2.0", "CC BY 3.0", "CC BY-SA 3.0", "CC BY-SA 4.0", "CC0: Public Domain", "CDLA Permissive 1.0", "Open Database License", "Research or commercial", "Research and commercial", "Creative Commons CC BY 3.0", "Creative Commons CC BY 4.0", "Creative Commons Attribution 3.0", "Creative Commons Attribution 4.0", "GNU Free Documentation License", "Creative Commons Attribution (CC-BY) license", "Creative Commons Attribution 3.0 Unported License", "Creative Commons Attribution-NoDerivatives 4.0 International License", "Creative Commons CC BY 4.0"} +} + // Dataset tasks func tasks() []string { return []string{"machine_translation", "question_answering_system", "information_retrieval", "knowledge_graph", "text_annotation", "text_categorization", "emotion_analysis", "language_modeling", "speech_recognition", "automatic_digest", "information_extraction", "description_generation", "image_classification", "face_recognition", "image_search", "target_detection", "image_description_generation", "vehicle_license_plate_recognition", "medical_image_analysis", "unmanned", "unmanned_security", "drone", "vr_ar", "2_d_vision", "2.5_d_vision", "3_d_reconstruction", "image_processing", "video_processing", "visual_input_system", "speech_coding", "speech_enhancement", "speech_recognition", "speech_synthesis"} diff --git a/templates/datasets/form.tmpl b/templates/datasets/form.tmpl index f22c88d23..7b6d0c70f 100644 --- a/templates/datasets/form.tmpl +++ b/templates/datasets/form.tmpl @@ -30,8 +30,7 @@
{{.i18n.Tr "dataset.category"}}
diff --git a/templates/datasets/show.tmpl b/templates/datasets/show.tmpl index 53d8d6525..c87ec5ec4 100644 --- a/templates/datasets/show.tmpl +++ b/templates/datasets/show.tmpl @@ -15,10 +15,10 @@