-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
When processing files without extensions, getBasename
will split on a directory name if it contains periods in it:
E.g., if I supply the path /mapr/r.ds/mml/file_0
, it will attempt to write the output json
file to /mapr/r.json
rather than /mapr/r.ds/mml/file_0.json
:
[main] INFO gov.nih.nlm.nls.ner.MetaMapLite - Loading and processing /mapr/r.ds/mml/file_0
[main] INFO gov.nih.nlm.nls.ner.MetaMapLite - outputing results to /mapr/r.json
Exception in thread "main" java.io.FileNotFoundException: /mapr/r.json (Operation not permitted)
Workaround
I've used the workaround of requiring all input files to have a .txt
extension (e.g., /mapr/r.ds/mml/file_0.txt
in the above example). This will put the output in the correct directory (e.g., /mapr/r.ds/mml/file_0.json
).
Metadata
Metadata
Assignees
Labels
No labels