title: How to use SyntaxNet output to operate an executive command ,for example save a file in a folder, on Linux system
body: <p>having downloaded and trained <a href="https://github.com/tensorflow/models/tree/master/syntaxnet" rel="nofollow">SyntaxNet</a>, I am trying to write a program that can open new/existed files, for example AutoCAD files, and save the files in an specific directory by analyzing the text:  <strong>open LibreOffice file X</strong> . considering the output of SyntaxNet as:  </p>
  
  <pre><code>echo "save AUTOCAD file  X in directory Y" | ./test.sh &gt; output.txt
  
  
  Input: save AUTOCAD file X in directory Y
  Parse:
  save VB ROOT
   +-- X NNP dobj
   |   +-- file NN compound
   |       +-- AUTOCAD CD nummod
   +-- directory NN nmod
       +-- in IN case
       +-- Y CD nummod
  </code></pre>
  
  <p>First I thought about changing the parsed text to XML format then parse the XML file with semantic analyses (like <code>SPARQL</code>) to find ROOT=save, dobj=X, and nummode=Y and write a python program that can do the same thing which is said in the text</p>
  
  <ol>
  <li><p>I don’t know that if I change the parsed text to XML and then use semantic analyses that uses querying in order to match  <code>ROOT</code> with its counterpart  function or script that saves  <code>dobj</code>, in a directory with mention in <code>nummode</code> </p></li>
  <li><p>I have some ideas to connect python to the terminal with <code>subprocess</code>package  but I didn't find anything that can help me saving for example an AUTOCAD file, or any other files, from the terminal or do I need to write a script, <code>.sh</code>, with the help of python?</p></li>
  </ol>
  
  <p>I did a huge research on syntactic and semantic analyses on texts, such as <a href="http://svn.aksw.org/papers/2012/LDL/ldl2012_proceedings/public/chiarcos.pdf" rel="nofollow">Christian Chiarcos, 2011</a>, <a href="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1702322/" rel="nofollow">Hunter and Cohen, 2006</a> and <a href="https://www.semanticscholar.org/paper/Interoperability-of-text-corpus-annotations-with-Verspoor-Kim/65c80f186ff7da0c7e4e847856d9acf57e479061/pdf" rel="nofollow">Verspoor et al., 2015</a>, and also studied <a href="http://windows.microsoft.com/en-us/windows-10/getstarted-what-is-cortana" rel="nofollow">Microsoft Cortana</a>, <a href="http://sirius.clarity-lab.org/tutorial/" rel="nofollow">Sirius</a>, <a href="https://en.wikipedia.org/wiki/Google_Now" rel="nofollow">google now</a> but none of them went through the detail of how they change a <strong>parsed text</strong> to a <strong>executive command</strong> which brought me to the conclusion that this work is too easy to be talked about but as I am none computer science major I cannot figure out what I can do about it. </p>