res = new HashSet<>();
- for (WordNetID synset : synsets)
- res.addAll(expandSynset(synset, edgeType));
- return res;
- }
-
- public static void main(String[] args) throws IOException {
-
- WnExpander wnLexicon = new WnExpander();
- wnLexicon.expandPhrase("assassinate");
- System.out.println();
- }
-
-}
diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/utils/WordNet.java b/src/main/java/edu/stanford/nlp/sempre/roboy/utils/WordNet.java
deleted file mode 100644
index a05bcf1..0000000
--- a/src/main/java/edu/stanford/nlp/sempre/roboy/utils/WordNet.java
+++ /dev/null
@@ -1,982 +0,0 @@
-package edu.stanford.nlp.sempre.roboy.utils;
-
-/*
- * Distributed as part of WordWalk, a Java package for lexical
- * semantic relatedness using random graph walks.
- *
- * Copyright (C) 2008 Daniel Ramage
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
-
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
-
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110 USA
- */
-
-import java.io.File;
-import java.lang.ref.WeakReference;
-import java.util.*;
-
-import edu.stanford.nlp.io.RuntimeIOException;
-import edu.stanford.nlp.objectbank.ObjectBank;
-
-
-/**
- * Fast, lightweight, constant time library for accessing WordNet. Use
- * one of the public load methods to create an instance by reading the WordNet
- * data files from disk. WordNet is represented with a set of WordID,
- * WordTagID, and SynsetID objects, each of which is unique within the WordNet
- * instance (so you can use == for equality checks). There are many types
- * of edges between these nodes (mostly SynsetID to SynsetID), where
- * each edge type is defined in the EdgeType enum.
- *
- * This class would be Serializable except that the default Java
- * serialization mechanism can't handle the depth of recursion between
- * the inner WordTagID objects -- hence an instance can be created only
- * by loading the requisite file from disk.
- *
- * @author dramage
- * @author Chris Manning made minimal changes to make it JavaNLP land not Ramage land
- */
-public final class WordNet {
-
- /** Global counter for assigning unique index to each loaded id. */
- private final ArrayList all = new ArrayList(500000);
-
- /** Global immutable view of all */
- private final List immutableAll = Collections.unmodifiableList(all);
-
- /** Set of loaded edges types */
- private final Set loadedEdges = new HashSet();
-
- /** Indexes mapping canonical strings to their typed versions */
- private final Map