public void readLabel(String readLabelFile) throws Exception {
  BufferedReader trUsers=new BufferedReader(new InputStreamReader(new FileInputStream(readLabelFile)));
  String line="";
  while ((line=trUsers.readLine()) != null) {
    String[] strs=line.split("\t");
    labels[Integer.valueOf(strs[0])]=Integer.valueOf(strs[1]);
  }
  trUsers.close();
}

public void readLabel ( String readLabelFile ) throws Exception { BufferedReader trUsers = new BufferedReader ( new InputStreamReader ( new FileInputStream ( readLabelFile ) ) ) ; String line = "" ; while ( ( line = trUsers . readLine ( ) ) != null ) { String [ ] strs = line . split ( "\t" ) ; labels [ Integer . valueOf ( strs [ 0 ] ) ] = Integer . valueOf ( strs [ 1 ] ) ; } trUsers . close ( ) ; }
read in category file of different source .
