<!DOCTYPE rkplugin >
<document>
  <!-- this code was generated using the rkwarddev package.
    perhaps don't make changes here, but in the rkwarddev script instead!
    
    look for a file called: $SRC/inst/rkward/rkwarddev_koRpus_plugin_script.R -->
  <code file="TokenizingPOStagging.js" />
  <help file="TokenizingPOStagging.rkh" />
  <!-- <dependencies>
      </dependencies> -->
  <logic>
    <convert id="lgc_oprtnMdf" sources="operationMode.string" mode="equals" standard="file" />
    <convert id="lgc_oprtnMTT" sources="operationMode.string" mode="equals" standard="fileTreeTagger" />
    <connect governor="lgc_oprtnMTT" client="TTRootText.visible" />
    <connect governor="lgc_oprtnMTT" client="TTRootDir.visible" />
    <connect governor="lgc_oprtnMTT" client="TTRootDir.required" />
    <connect governor="lgc_oprtnMdf" client="tknzOptions.visible" />
  </logic>
  <dialog label="POS Tagging">
    <row id="row_cMSTTTTTTT">
      <column id="clm_rMSTTTTTTT">
        <radio id="operationMode" label="Select operation mode">
          <option label="Tokenize with tokenize()" value="file" checked="true" />
          <option label="Tokenize and tag with TreeTagger" value="fileTreeTagger" />
        </radio>
        <frame id="frm_bTTTTRDTTR">
          <browser label="TreeTagger root folder:" type="dir" id="TTRootDir" />
          <text id="TTRootText">
            The TreeTagger folder is the one containing the bin, cmd and lib folders
          </text>
          <dropdown id="language" label="Text language:">
            <option label="Dutch" value="nl" />
            <option label="English" value="en" checked="true" />
            <option label="French" value="fr" />
            <option label="German" value="de" />
            <option label="Italian" value="it" />
            <option label="Portuguese" value="pt" />
            <option label="Russian" value="ru" />
            <option label="Spanish" value="es" />
          </dropdown>
          <browser label="Text to analyze:" type="file" id="textFile" filter="*.txt" />
        </frame>
        <frame label="tokenize() options" id="tknzOptions">
          <checkbox id="detectHeadlines" label="Detect headlines (treated as sentences)" value="hline=TRUE" />
          <checkbox id="detectParagraphs" label="Detect paragraphs" value="parag=TRUE" />
        </frame>
        <stretch />
        <frame id="showTaggedFrame">
          <checkbox id="showTagged" label="List tokenized results in output (slow for long texts!)" value="tagged" />
        </frame>
        <saveobject label="Keep tagged text object" checkable="true" checked="true" initial="tagged.text.obj" id="saveTaggedText" />
      </column>
    </row>
  </dialog>
</document>
