@Override
  public void initialize() throws ResourceInitializationException {
    // System.out.println("*************");
    try {
      outputFile = new File((String) getConfigParameterValue(outputPath));
      writer = new BufferedWriter(new FileWriter(outputFile));
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    }
    testFile = new File("src/main/resources/data/sample.out");
    Scanner dict = null;
    try {
      dict = new Scanner(testFile);
    } catch (FileNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    while (dict.hasNext()) {
      table.put(dict.nextLine(), 0);
      words++;
    }
  }