spraakbanken / sparv-pipeline

Språkbanken's text analysis tool
https://spraakbanken.gu.se/sparv
MIT License
25 stars 6 forks source link

Document all config variables visibly in CLI #72

Closed anne17 closed 3 years ago

anne17 commented 4 years ago

Skriv kommentarer till alla configvariabler, gör dem synliga i CLIet.

anne17 commented 4 years ago

In 49069a3 I added info about importers and exporters to the sparv modules command. One thing that's still missing here is costum annotation arguments. And it would be nice if sparv modules could take arguments like importers to only show info about importers (the list of modules is really long now).

anne17 commented 4 years ago

The sparv modules command works pretty well now and one can supply both flags like --annotators, --importers, --exporters and --custom_annotators to get all annotation functions from a specific category and positional arguments like korp to get information about specific annotation modules.

@MartinHammarstedt is working on converting the built-in custom annotators into ordinary annotators using wildcards. Once this is done we may want to remove the --custom_annotators option since it won't really serve a purpose then. Custom annotations created by a user (supplied by python code in the corpus dir) are always listed as "ordinary" annotators/importers/exporters.

MartinHammarstedt commented 3 years ago

Not all custom annotators could be converted to wildcard annotators, but the separate custom annotators section in sparv modules has been removed and the annotators now live among the regular annotators.