public static void copyUnsetAnnotations ( CoreMap src , CoreMap dest ) { Set < Class < ? > > otherKeys = src . keySet ( ) ; for ( Class key : otherKeys ) { if ( ! dest . has ( key ) ) { dest . set ( key , src . get ( key ) ) ; } } }
Copies annotation over to this coremap if not already set