Commit d7ba9d11 authored by Koichi Yasuoka's avatar Koichi Yasuoka
Browse files

advmod checker included

parent 03b25b64
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -321,6 +321,11 @@ conllusvg.kanbun.checkLinks=function(textid){
	    p=1;
	}
      }
      if(p==0&&d=="advmod"){
        k=c.nodes[t].upostag;
        if(k=="NOUN"||k=="PRON"||k=="PROPN")
	  p=1;
      }
      if(p==0&&(d=="nmod"||d=="compound"||d=="flat")){
        k=c.nodes[f].upostag;
	if(k=="NOUN"||k=="PROPN"||k=="PRON"||k=="NUM"||k=="PART")