diff options
Diffstat (limited to 'Algorithms/Part-II/1-WordNet/Outcast.java')
-rw-r--r-- | Algorithms/Part-II/1-WordNet/Outcast.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Algorithms/Part-II/1-WordNet/Outcast.java b/Algorithms/Part-II/1-WordNet/Outcast.java new file mode 100644 index 0000000..296fd79 --- /dev/null +++ b/Algorithms/Part-II/1-WordNet/Outcast.java @@ -0,0 +1,27 @@ +/* vim: set expandtab tabstop=4 shiftwidth=4 : */ + +public class Outcast +{ + // constructor takes a WordNet object + public Outcast(WordNet wordnet) + { + } + + // given an array of WordNet nouns, return an outcast + public String outcast(String[] nouns) + { + return ""; + } + + // for unit testing of this class (such as the one below) + public static void main(String[] args) + { + WordNet wordnet = new WordNet(args[0], args[1]); + Outcast outcast = new Outcast(wordnet); + for (int t = 2; t < args.length; t++) { + String[] nouns = In.readStrings(args[t]); + StdOut.println(args[t] + ": " + outcast.outcast(nouns)); + } + } +} + |