public String shortenPfeat(String fea){
  String s=fea;
  s=s.replace("phone","phn");
  s=s.replace("prev","p");
  s=s.replace("next","n");
  s=s.replace("sentence","snt");
  s=s.replace("phrase","phr");
  s=s.replace("word","wrd");
  s=s.replace("from_","");
  s=s.replace("to_","");
  s=s.replace("in_","");
  s=s.replace("is_","");
  s=s.replace("break","brk");
  s=s.replace("start","stt");
  s=s.replace("accented","acc");
  s=s.replace("accent","acc");
  s=s.replace("stressed","str");
  s=s.replace("punctuation","punc");
  s=s.replace("frequency","freq");
  s=s.replace("position","pos");
  s=s.replace("halfphone_lr","lr");
  return s;
}

public String shortenPfeat ( String fea ) { String s = fea ; s = s . replace ( "phone" , "phn" ) ; s = s . replace ( "prev" , "p" ) ; s = s . replace ( "next" , "n" ) ; s = s . replace ( "sentence" , "snt" ) ; s = s . replace ( "phrase" , "phr" ) ; s = s . replace ( "word" , "wrd" ) ; s = s . replace ( "from_" , "" ) ; s = s . replace ( "to_" , "" ) ; s = s . replace ( "in_" , "" ) ; s = s . replace ( "is_" , "" ) ; s = s . replace ( "break" , "brk" ) ; s = s . replace ( "start" , "stt" ) ; s = s . replace ( "accented" , "acc" ) ; s = s . replace ( "accent" , "acc" ) ; s = s . replace ( "stressed" , "str" ) ; s = s . replace ( "punctuation" , "punc" ) ; s = s . replace ( "frequency" , "freq" ) ; s = s . replace ( "position" , "pos" ) ; s = s . replace ( "halfphone_lr" , "lr" ) ; return s ; }
shorten the key name ( to make the full context names shorter ) see common_routines . pl in hts training . not needed check
