Mercurial > repos > stevecassidy > nltktools
comparison g_frequency.xml @ 0:e991d4e60c17 draft
planemo upload commit 0203cb3a0b40d9348674b2b098af805e2986abca-dirty
| author | stevecassidy |
|---|---|
| date | Wed, 12 Oct 2016 22:17:53 -0400 |
| parents | |
| children | 0df72a8ab095 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:e991d4e60c17 |
|---|---|
| 1 <tool id="Frequency" name="Frequency List" version="1.0"> | |
| 2 <description>Takes a text input and generates a frequency list</description> | |
| 3 | |
| 4 <requirements> | |
| 5 <requirement type="package" version="3.2.1">nltk</requirement> | |
| 6 </requirements> | |
| 7 | |
| 8 <command interpreter="python"> | |
| 9 g_frequency.py --input $input1 --output $frequency_table | |
| 10 </command> | |
| 11 | |
| 12 <inputs> | |
| 13 <param name="input1" type="data" format="txt" | |
| 14 label="Select a suitable input file from your history"/> | |
| 15 | |
| 16 <param name="job_name" type="text" size="25" | |
| 17 label="Supply a name for the outputs to remind you what they contain" | |
| 18 value="Frequency List"/> | |
| 19 </inputs> | |
| 20 <outputs> | |
| 21 <data format="tabular" name="frequency_table" label="${job_name}"/> | |
| 22 </outputs> | |
| 23 | |
| 24 <tests> | |
| 25 <test> | |
| 26 <param name='input1' value='sample_text.txt'/> | |
| 27 <param name='job_name' value='testfrequency'/> | |
| 28 <output name='testfrequency' file='sample_text_frequency.dat'/> | |
| 29 </test> | |
| 30 </tests> | |
| 31 <help> | |
| 32 Generate a frequency list from a text ordered by word frequency. | |
| 33 </help> | |
| 34 </tool> |
