You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
When processing files without extensions,
getBasename
will split on a directory name if it contains periods in it:https://github.com/lhncbc/metamaplite/blob/a7d10264a023afda497356f50faa4385ab7e3908/src/main/java/gov/nih/nlm/nls/ner/MetaMapLite.java#L1003-L1011
E.g., if I supply the path
/mapr/r.ds/mml/file_0
, it will attempt to write the outputjson
file to/mapr/r.json
rather than/mapr/r.ds/mml/file_0.json
: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
).The text was updated successfully, but these errors were encountered: