Ver código fonte

分诊统计

luolei 5 anos atrás
pai
commit
0efb389fb1
1 arquivos alterados com 6 adições e 5 exclusões
  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')