No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[CODE]package corpus; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import java.util.HashMap; import java.util.Map; import java.util.HashSet; import java.util.Set; import java.util.Collection; import java.util.TreeSet; public class FileReader { private static final String[] FILES ={"a_christmas_carol_capter1.txt", "a_christmas_carol_chapter4.txt", "emma_chapter1.txt", "emma_chapter2.txt", "pride_and_prejudice_chapter3.txt",}; private Map<String, Set<String>> corpusCV; public FileReader(String textFile) throws FileNotFoundException { Set<String> texts = new HashSet<String>(); corpusCV … |