code: public void loadAnalogiesFromFile(String analogy_file) {
  
              try {
                  Scanner sc = new Scanner(new File(analogy_file));
                  while (sc.hasNext()) {
                      String analogy = sc.next();
                      if (!isAnalogyFormat(analogy)) {
                          System.err.println("\"" + analogy + "\" not in proper format.");
                          continue;
                      }
                      String analogy_pair[] = analogy.split(":");
                      String A = analogy_pair[0];
                      String B = analogy_pair[1];
  
                      //1. Find alternates for A and B
                      Synset[] A_prime = findAlternatives(A);
                      Synset[] B_prime = findAlternatives(B);
                      
                      //2. Filter phrases
                      ArrayList<String> tmp = new ArrayList<String>(filterPhrases(INDEX_DIR,A,B,A_prime,B_prime));
                      filtered_phrases.addAll(tmp);
                      original_to_alternates.put(A+":"+B, tmp);
                  }
                  sc.close();
              } catch (Exception e) {
                  System.err.println("Could not read file.");
              }
      }
docs: Loads the analogies from an input file.
  The file must contain word pairs in the form of A:B separated by newlines.
  
  @param analogy_file a {@code String} containing the absolute path to the analogy file.