Skip to content
Snippets Groups Projects
Commit b0dc8699 authored by François  LAURENT's avatar François LAURENT
Browse files

addresses #58 for import

parent 9185facd
No related branches found
No related tags found
No related merge requests found
Pipeline #90557 passed
......@@ -71,3 +71,9 @@ Note that the `larvatagger.sh` script is required here. Alternatively, the exter
The `predict` command can use external model instances passing paths instead of instance names.
To distinguish between paths and names, `larvatagger.sh` checks whether the corresponding directory exists. If a directory exists at the path pointed to by `--model-instance` (on the host), then it is mounted into the container as an external trained model.
For example:
```
./larvatagger.sh train /path/to/data/repo my-tagger --backend MaggotUBA
./larvatagger.sh predict /path/to/data/file --backend MaggotUBA --model-instance models/my-tagger --skip-make-dataset
```
......@@ -29,6 +29,7 @@ function reset(dir::String)
catch
end
mkpath(dir)
check_permissions(dir)
end
resetmodel(tagger::Tagger) = reset(modeldir(tagger))
......
......@@ -54,6 +54,7 @@ function main(args=ARGS)
else
outfile = joinpath(dirname(infile), outfile)
Datasets.to_json_file(outfile, run)
Taggers.check_permissions(outfile)
end
elseif parsed_args["open"]
verbose = !parsed_args["--quiet"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment