changeset 2:57e86cd394e8 draft

Uploaded
author moba
date Tue, 02 May 2017 05:46:02 -0400
parents fb0620ea8b54
children 047f65d57d81
files simpleprojector2.xml
diffstat 1 files changed, 56 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/simpleprojector2.xml	Tue May 02 05:46:02 2017 -0400
@@ -0,0 +1,56 @@
+<tool id="simpleprojector2" name="simple projector 2" version="0.0.1">
+  <description>Projects a simple dictionary on sections.</description>
+  <!--command interpreter="python">
+	simpleprojector2.py 
+	-verbose ${verbose}  
+  	-noColors ${noColors} 
+	-dictFile ${input}
+	-trieSink ${output}
+	-targetLayerName ${tln} 
+	-valueFeatures ${vf}
+	-keyIndex ${ki} 
+  </command-->
+<command>
+        alvisnlp
+ 	-noColors
+	-param search dictFile ${input}
+	-param search trieSink ${output}
+	-param search targetLayerName ${tln} 
+	-param search valueFeatures ${vf}
+	-param search keyIndex ${ki}  
+	${plan}
+ </command>
+
+  <inputs>
+    <param format="txt" name="verbose" value="false" type="boolean" label="verbose" help=""/>
+
+    <param format="txt" name="noColors" value="false" type="boolean" label="colors" help=""/>
+
+    <param format="txt" name="input" type="data" label="dictionary" help="Source of the dictionary."/>
+
+    <param name="tln" type="text" label="Target Layer Name" value="concepts" help="Name of the layer that contains the match annotations." />
+
+    <param name="vf" type="text" label="Value Features" value="id,entry" help="Target features in match annotations. The values are the columns in the matched entry line." />
+
+    <param name="ki" type="text" label="Key Index" value="0" help="Specifies the key column index (starting at 0)." />
+
+    <param format="txt,xml" name="plan" type="data" label="Plan" help="The plan to use." />
+
+  </inputs>
+
+   
+
+  <outputs>
+    <data format="trie" name="output" help="If set, read the compiled dictionary from the specified files. Compiled dictionaries are generally faster for large dictionaries."/>
+  </outputs>
+
+  <tests>
+    <test>
+      <param name="input" value="dictionary-lemma.txt"/>
+      <param name="targetLayerName" value="concepts"/>
+      <param name="valueFeatures" value="id,entry"/>
+      <param name="keyIndex" value="1"/>
+      <output name="output" file="dictionary-lemma-output.trie"/>
+    </test>
+  </tests>
+</tool>