Are you talking about this software: http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/ ? If so, a quick look at that page seems to show that you can give it input via STDIN. A module such as IPC::Run, IPC::Run3, or Capture::Tiny may be able to help you. However make sure to read their documentation, as they might not actually be more efficient than the way you are doing it, for example, IPC::Run3 uses temporary files internally in several cases. It's just easier to use than doing all the temp file stuff yourself.

Have you tried out the Perl interface Lingua::TreeTagger? It looks like the install may be a bit tricky, but if you install its prerequisites manually you may have success.


In reply to Re: TreeTagger Run System Variables by Anonymous Monk
in thread TreeTagger Run System Variables by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.