瀏覽代碼

分诊统计

luolei 5 年之前
父節點
當前提交
0efb389fb1
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      src/js/participle.js

+ 6 - 5
src/js/participle.js

@@ -92,13 +92,14 @@ function getEntityPredict(){
             const entryList  = result&&result.outputs&&result.outputs.annotation['T']
             const relationList = result&&result.outputs&&result.outputs.annotation['R']
             let content = result.content
-            // getSchema(content,entryList)
             if((JSON.stringify(entryList)!='[""]')&&(JSON.stringify(relationList)!='[""]')){
+                // getRelationList(relationList,entryList)
+                // let enter = chageEnter(entryList)
+                // let rela = chageRelation(relationList)
+                // let svgData = Object.assign(enter,rela,{"content":content})
+                // showSvg(svgData)
+                getSchema(content,entryList)
                 getRelationList(relationList,entryList)
-                let enter = chageEnter(entryList)
-                let rela = chageRelation(relationList)
-                let svgData = Object.assign(enter,rela,{"content":content})
-                showSvg(svgData)
                 $('#analy').removeClass('disabled')
             }else{
                 $('#analy').addClass('disabled')