|
@@ -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')
|