public boolean checkTermsRefsIntegrity ( List < String > wfIds , List < String > termWfIds ) { for ( int i = 0 ; i < wfIds . size ( ) ; i ++ ) { if ( ! termWfIds . contains ( wfIds . get ( i ) ) ) { return false ; } } return true ; }
Check that the references from the entity spans are actually contained in the term ids .