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)
| 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 |
no test coverage detected