question: public static String convertBracketsFromPTBFormat ( String sentence ) { sentence = sentence . replaceAll ( "-LRB-" , "(" ) ; sentence = sentence . replaceAll ( "-RRB-" , ")" ) ; sentence = sentence . replaceAll ( "-LSB-" , "[" ) ; sentence = sentence . replaceAll ( "-RSB-" , "]" ) ; sentence = sentence . replaceAll ( "-LCB-" , "{" ) ; sentence = sentence . replaceAll ( "-RCB-" , "}" ) ; return sentence ; }
target:  Convert brackets from the Penn treebank format (which uses strings like -LRB-, -RRB-, etc to denote '(', ')', etc.) to readable tokens.