(String rootDir, LangDescriptor language)
| 62 | public Map<Token, Pair<Boolean, Integer>> tokenToListInfo; |
| 63 | |
| 64 | public Corpus(String rootDir, LangDescriptor language) throws Exception { |
| 65 | this.rootDir = rootDir; |
| 66 | this.language = language; |
| 67 | if ( documents==null ) { |
| 68 | List<String> allFiles = getFilenames(new File(rootDir), language.fileRegex); |
| 69 | documents = Tool.load(allFiles, language); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | public Corpus(List<InputDocument> documents, LangDescriptor language) { |
| 74 | this.documents = documents; |
nothing calls this directly
no test coverage detected