public static void main(String[] args) { // String vectorFile = TestConstants.GZIP_VECTOR_FILE; // String vectorFile = TestConstants.VECTOR_FILE; String vectorFile = TestConstants.S_VECTOR_FILE; if (args.length > 0) { vectorFile = args[0]; } RawSemanticSpace space = RawSemanticSpace.readSpace(vectorFile); System.out.println("Enter 3 words or EXIT to exit"); try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input; while ((input = br.readLine()) != null) { if (input.equals("EXIT")) { break; } else { String[] elements = input.split(" "); if (elements.length != 3) { System.out.println("need 3 words"); } else { getWordAnology(space, elements[0], elements[1], elements[2]); } } } } catch (IOException io) { io.printStackTrace(); } }