public String getContextStr ( Sentence sent , int wordIdx ) { String cpStr = "" ; for ( int i = 0 ; i < cntxGenVector . size ( ) ; ++ i ) { String [ ] context = cntxGenVector . get ( i ) . getContext ( sent , wordIdx ) ; if ( context != null ) { for ( int j = 0 ; j < context . length ; ++ j ) { if ( context [ j ] . trim ( ) . equals ( "" ) ) continue ; cpStr += context [ j ] + " " ; } } } return cpStr . trim ( ) ; }
Gets the context str .