From 70ba0d73af330c8548d2d491e17ff5b512921ab5 Mon Sep 17 00:00:00 2001 From: Robert Bossy <Robert.Bossy@inra.fr> Date: Mon, 28 Mar 2022 13:52:07 +0200 Subject: [PATCH] fixed taxon selection --- select-taxa.plan | 2 +- test.plan | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/select-taxa.plan b/select-taxa.plan index 3e054bc..2c0cc74 100644 --- a/select-taxa.plan +++ b/select-taxa.plan @@ -21,7 +21,7 @@ </taxids> <layer class="Action"> - <target>documents.sections.layer:taxa[@select-taxa]</target> + <target>documents.sections.layer:taxa[@selected-taxa]</target> <action> setlayer:add(corpus.@select-taxa-name) | set:feat(corpus.@select-taxa-name, corpus.@select-taxa-name) diff --git a/test.plan b/test.plan index 3605013..978cdfb 100644 --- a/test.plan +++ b/test.plan @@ -1,6 +1,6 @@ <alvisnlp-plan id="test"> <read class="TextFileReader"> - <sourcePath recursive="true">BioNLP-ST-2016_BB-cat+ner/BB-cat+ner-8347510.txt</sourcePath> + <sourcePath recursive="true">BioNLP-ST-2016_BB-cat+ner</sourcePath> <baseNameId/> </read> @@ -8,4 +8,9 @@ <taxaDict>output/taxa+id_full.txt</taxaDict> <compiledDict>output/taxa+id_full.trie</compiledDict> </ner-taxa> -</alvisnlp-plan> \ No newline at end of file + + <select-microorganisms href="select-taxa.plan"> + <list>output/taxid_microorganisms.txt</list> + <name>microorganisms</name> + </select-microorganisms> +</alvisnlp-plan> -- GitLab