diff --git a/select-taxa.plan b/select-taxa.plan index 3e054bc62d4bbbd23683b3d86bb5cadc294d674a..2c0cc744442c2f31dd87c46e9e120ad113275439 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 3605013442f9e95cd5d86cb1500e9aece5e3485a..978cdfb615bf259eccab6da2366844acb57f472b 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>