MCPcopy Create free account
hub / github.com/GateNLP/gate-core / populate

Method populate

src/main/java/gate/corpora/CorpusImpl.java:358–361  ·  view source on GitHub ↗

Fills the provided corpus with documents created on the fly from selected files in a directory. Uses a FileFilter to select which files will be used and which will be ignored. A simple file filter based on extensions is provided in the Gate distribution ( {@link gate.util.ExtensionFileFilter

(Corpus corpus, URL directory, FileFilter filter,
          String encoding, boolean recurseDirectories)

Source from the content-addressed store, hash-verified

356 * @throws java.io.IOException if a file doesn't exist
357 */
358 public static void populate(Corpus corpus, URL directory, FileFilter filter,
359 String encoding, boolean recurseDirectories) throws IOException {
360 populate(corpus, directory, filter, encoding, null, recurseDirectories);
361 }
362
363 /**
364 * Fills the provided corpus with documents created on the fly from

Callers 1

populateMethod · 0.95

Calls 15

fileFromURLMethod · 0.95
listFilesRecursivelyMethod · 0.95
getListenersMethod · 0.95
statusChangedMethod · 0.95
genSymMethod · 0.95
newFeatureMapMethod · 0.95
createResourceMethod · 0.95
deleteResourceMethod · 0.95
getNlMethod · 0.95
prlnMethod · 0.95
toURLMethod · 0.80
toURIMethod · 0.80

Tested by

no test coverage detected