private void makeFunAnnotations ( Constituent cons , String [ ] funCatLabels ) { if ( funCatLabels != null && funCatLabels . length > 1 ) { String labeltype ; for ( int i = 1 ; i < funCatLabels . length ; i ++ ) { labeltype = funTable . get ( funCatLabels [ i ] ) ; if ( labeltype != null ) { Class c = cons . getClass ( ) ; if ( labeltype . equals ( "formFuncDisc" ) ) { if ( c . equals ( GENIAConstituent . class ) ) ( ( GENIAConstituent ) cons ) . setFormFuncDisc ( funCatLabels [ i ] ) ; if ( c . equals ( PennBioIEConstituent . class ) ) ( ( PennBioIEConstituent ) cons ) . setFormFuncDisc ( funCatLabels [ i ] ) ; if ( c . equals ( PTBConstituent . class ) ) ( ( PTBConstituent ) cons ) . setFormFuncDisc ( funCatLabels [ i ] ) ; } if ( labeltype . equals ( "gramRole" ) ) { if ( c . equals ( GENIAConstituent . class ) ) ( ( GENIAConstituent ) cons ) . setGramRole ( funCatLabels [ i ] ) ; if ( c . equals ( PennBioIEConstituent . class ) ) ( ( PennBioIEConstituent ) cons ) . setGramRole ( funCatLabels [ i ] ) ; if ( c . equals ( PTBConstituent . class ) ) ( ( PTBConstituent ) cons ) . setGramRole ( funCatLabels [ i ] ) ; } if ( labeltype . equals ( "adv" ) ) { if ( c . equals ( GENIAConstituent . class ) ) ( ( GENIAConstituent ) cons ) . setAdv ( funCatLabels [ i ] ) ; if ( c . equals ( PennBioIEConstituent . class ) ) ( ( PennBioIEConstituent ) cons ) . setAdv ( funCatLabels [ i ] ) ; if ( c . equals ( PTBConstituent . class ) ) ( ( PTBConstituent ) cons ) . setAdv ( funCatLabels [ i ] ) ; } if ( labeltype . equals ( "misc" ) ) { if ( c . equals ( GENIAConstituent . class ) ) ( ( GENIAConstituent ) cons ) . setMisc ( funCatLabels [ i ] ) ; if ( c . equals ( PennBioIEConstituent . class ) ) ( ( PennBioIEConstituent ) cons ) . setMisc ( funCatLabels [ i ] ) ; if ( c . equals ( PTBConstituent . class ) ) ( ( PTBConstituent ) cons ) . setMisc ( funCatLabels [ i ] ) ; } if ( labeltype . equals ( "syn" ) ) { if ( c . equals ( GENIAConstituent . class ) ) ( ( GENIAConstituent ) cons ) . setSyn ( funCatLabels [ i ] ) ; } } } } }
make Fun annotations