public String toPOSString ( char delimiter ) { return tokens ( ) . stream ( ) . map ( t -> t . toString ( ) + delimiter + t . get ( Types . PART_OF_SPEECH ) . as ( POS . class , POS . ANY ) . asString ( ) ) . collect ( Collectors . joining ( " " ) ) ; }
Converts the HString to a string with part - of - speech information attached using the given delimiter