diff --git a/public/home/search.js b/public/home/search.js index 9a9626082..66dcce6c3 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -269,6 +269,13 @@ var categoryDesc={ "computer_vision_natural_language_processing":"计算机视觉、自然语言处理" }; +var categoryENDesc={ + "computer_vision":"computer vision", + "natural_language_processing":"natural language processing", + "speech_processing":"speech processing", + "computer_vision_natural_language_processing":"computer vision and natural language processing" +}; + var taskDesc={ "machine_translation":"机器翻译", "question_answering_system":"问答系统", @@ -305,16 +312,62 @@ var taskDesc={ "speech_synthesis":"语音合成" }; -function getCategoryDesc(key){ - var re = categoryDesc[key]; +var taskENDesc={ + "machine_translation":"machine translation", + "question_answering_system":"question answering system", + "information_retrieval":"information retrieval", + "knowledge_graph":"knowledge graph", + "text_annotation":"text annotation", + "text_categorization":"text categorization", + "emotion_analysis":"emotion analysis", + "language_modeling":"language modeling", + "speech_recognition":"speech recognition", + "automatic_digest":"automatic digest", + "information_extraction":"information extraction", + "description_generation":"description generation", + "image_classification":"image classification", + "face_recognition":"face recognition", + "image_search":"image search", + "target_detection":"target detection", + "image_description_generation":"image description generation", + "vehicle_license_plate_recognition":"vehicle license plate recognition", + "medical_image_analysis":"medical image analysis", + "unmanned":"unmanned", + "unmanned_security":"unmanned security", + "drone":"drone", + "vr_ar":"VR/AR", + "2_d_vision":"2.D vision", + "2.5_d_vision":"2.5D vision", + "3_d_reconstruction":"3Dreconstruction", + "image_processing":"image processing", + "video_processing":"video processing", + "visual_input_system":"visual input system", + "speech_coding":"speech coding", + "speech_enhancement":"speech enhancement", + "speech_recognition":"speech recognition", + "speech_synthesis":"speech synthesis" +}; + +function getCategoryDesc(isZh,key){ + var re = key; + if(isZh){ + re = categoryDesc[key]; + }else{ + re = categoryENDesc[key]; + } if(isEmpty(re)){ return key; } return re; } -function getTaskDesc(key){ - var re = taskDesc[key]; +function getTaskDesc(isZh,key){ + var re = key; + if(isZh){ + re = taskDesc[key]; + }else{ + re = taskENDesc[key]; + } if(isEmpty(re)){ return key; } @@ -354,10 +407,10 @@ function displayDataSetResult(page,jsonResult,onlyReturnNum,keyword){ html += "
"; html += "
" ; if(!isEmpty(recordMap["category"])){ - html += " " + getCategoryDesc(recordMap["category"]) + ""; + html += " " + getCategoryDesc(isZh,recordMap["category"]) + ""; } if(!isEmpty(recordMap["task"])){ - html += " " + getTaskDesc(recordMap["task"]) + ""; + html += " " + getTaskDesc(isZh,recordMap["task"]) + ""; } html += " " +recordMap["download_times"] + " "; html +="
";