@Override
 
  public void initialize() throws ResourceInitializationException {
    
    sentences = new ArrayList<String>();
    
    BufferedReader br;

    String line;
    try {
      br = new BufferedReader(new FileReader(((String) getConfigParameterValue(PARAM_INPUTDIR))));
      line = br.readLine();
      
      while (line != null) {
        sentences.add(line);
        
        line = br.readLine();
      }
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    

    
    mCurrentIndex = 0;
    
  }