dkpro-core icon indicating copy to clipboard operation
dkpro-core copied to clipboard

Filenames containing full paths created when readers used with filenames only

Open reckart opened this issue 8 years ago • 0 comments

Running a reader with a configuration like this:

        CollectionReaderDescription reader = createReaderDescription(
                TextReader.class,
                TextReader.PARAM_PATTERNS, new String[] {
                        "src/test/resources/texts/test1.txt",
                        "src/test/resources/texts/test2.txt"
                });

Produces filenames like these:

file%3A%2Fhome%2Fsomeuser%2Fgit%2Fdkpro-core%2Fdkpro-core-io-text-asl%2Fsrc%2Ftest%2Fresources%2Ftexts%2Ftest1.txt
file%3A%2Fhome%2Fsomeuser%2Fgit%2Fdkpro-core%2Fdkpro-core-io-text-asl%2Fsrc%2Ftest%2Fresources%2Ftexts%2Ftest2.txt

Instead the relative location to the current working directory should be preserved.

reckart avatar Jul 08 '17 12:07 reckart