openminted / uc-tdm-socialsciences

Social sciences literature Text Mining software collection
https://builds.openminted.eu/job/uc-socialsciences/ws/ss-doc/target/generated-docs/user-guide.html
Other
1 stars 1 forks source link

Allow single-file input for converters #10

Closed neumannm closed 7 years ago

neumannm commented 8 years ago

Currently it's only possible to specifiy a directory where PDFs/XML files reside. It should also be possible to provide a single file to be converted.

neumannm commented 7 years ago

What about PdfxXmlToXmiConverter, this currently only supports input directories right @maxxkia ?

reckart commented 7 years ago

DKPro Core readers usually allow PARAM_SOURCE_LOCATION to be either a directory/pattern or a single file, e.g.

PARAM_SOURCE_LOCATION, "some/folder/**/*.txt"

or

PARAM_SOURCE_LOCATION, "some/folder/file.txt"
neumannm commented 7 years ago

Sure, I'm just referring to our surrounding code. It relies on user input of the input directory and I'm not quite sure what happens if the user inputs the path to a single input file directly.