private boolean isPhraseOrClause ( String tag ) { // find out why adding more reduced the number of relations return ( ! tag . equals ( "SYM" ) && tag . startsWith ( "S" ) ) || tag . equals ( "ADJP" ) || tag . equals ( "ADVP" ) || tag . equals ( "CONJP" ) || tag . equals ( "FRAG" ) || tag . equals ( "INTJ" ) || tag . equals ( "LST" ) || tag . equals ( "NAC" ) || tag . equals ( "NP" ) || tag . equals ( "NX" ) || tag . equals ( "PP" ) || tag . equals ( "PRN" ) || /* removing prt adds 1% more relations */ tag . equals ( "PRT" ) || tag . equals ( "QP" ) || tag . equals ( "RRC" ) || tag . equals ( "UCP" ) || tag . equals ( "VP" ) || tag . startsWith ( "WH" ) || tag . equals ( "X" ) ; }
Checks to see if tag marks a phrase or clause