title: Using OpenIE to extract triples from command line
body: <p>I have a modestly sized file (~1.5 GB) of free text and I am hoping to use OpenIE to extract triples, but I'm currently having a few problems. </p>
  
  <p>I invoke it using the following command:</p>
  
  <pre><code>java -mx2g  -cp "*" edu.stanford.nlp.naturalli.OpenIE ./my_file.txt
  </code></pre>
  
  <p>The first issue is that this uses <em>a lot</em> of memory. I get java memory issues even if I allow 50GB using <code>-mx50g</code>. </p>
  
  <p>The second issue is that it does not seem to write the output to a file, it only dumps it to the console. The only way to get the result into a file is to redirect the output into a file. </p>
  
  <p>This is my first time using the package, so I'm not sure if I'm just doing something dumb. Is this memory usage correct and how do I save the results to a file? </p>