code: public void add(Reader reader) throws IOException
      {
          BufferedReader buffered = new BufferedReader(reader);
          String line = buffered.readLine();
          while (line != null)
          {
              String[] split = line.split(delimiter);
              if (split.length != 2)
                  throw new IllegalArgumentException();
              add(split[0].trim(), MentionType.getType(split[1].trim()));
              line = buffered.readLine();
          }
          // System.out.println("Size is now " + entities.size());
      }
docs: Loads multiple entries to the dictionary by reading them from the specified {@link Reader}.
  
  @param reader
  The {@link Reader} containing the entries to be added, one entry per line, in the format <entry>--><type>
  @throws IOException