Answers.Body: <p><img src="https://i.sstatic.net/FTxLV.gif" alt="enter image description here"></p>
  
  <p>When you parse sentences you use grammatics to sentences to get the meaning (semantics).</p>
  
  <p>Now you use sematics (tuples) and grammatics to make a sentence.</p>
  
  <p>Your knowledge includes verb, noun and some kind of notion of readiness of the task defined by them.</p>
  
  <p>To form sentences you also need knowledge / rules about the extra eligible words between these categories, as well as how time relates to verb grammatical tense.</p>
  
  <p>You have to code a parser for tuples that codes the tuple in the three parts, formulate the grammatics,
  and then apply the grammatics to the parsed tuple data.</p>
  
  <p>After that you'll get the sentences.</p>
  
  <p>More precise information on how to code that and this information plus the picture source:</p>
  
  <p><a href="http://cs.union.edu/~striegnk/courses/nlp-with-prolog/html/node93.html#l14.sec.nlg" rel="nofollow noreferrer">http://cs.union.edu/~striegnk/courses/nlp-with-prolog/html/node93.html#l14.sec.nlg</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-28T21:01:15.863Z
Answers.LastActivityDate: 2017-12-28T21:22:17.360Z
Answers.LastEditDate: 2017-12-28T21:22:17.360Z
Answers.UserDisplayName: mico
Body: <p>Let's pretend we had a list of facts (similar to prolog tuples) that define some knowledge about some entities. e.g.</p>
  
  <pre><code>doing(clean, data)
  done(collect, data)
  todo(train, model)
  todo(write, paper)
  </code></pre>
  
  <p>What methods could I use to generate sentences like:</p>
  
  <p><em>You should be cleaning the data you collected, then you need to train your model and write your paper.</em></p>
  
Tags: <natural-language-processing>
Title: How could you generate sentences from lists of facts
UserDisplayName: Jasper Lyons
ThreadText: # How could you generate sentences from lists of facts
  
  (Asked by: username_0 on 2017-12-26)
  
  Let's pretend we had a list of facts (similar to prolog tuples) that define some knowledge about some entities. e.g.
  doing(clean, data)
  done(collect, data)
  todo(train, model)
  todo(write, paper)
  
  What methods could I use to generate sentences like:
  You should be cleaning the data you collected, then you need to train your model and write your paper.
  
  **Tags:** natural-language-processing
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-12-28. Score: 1
  
  ![enter image description here](https://i.sstatic.net/FTxLV.gif)
  
  When you parse sentences you use grammatics to sentences to get the meaning (semantics).
  
  Now you use sematics (tuples) and grammatics to make a sentence.
  
  Your knowledge includes verb, noun and some kind of notion of readiness of the task defined by them.
  
  To form sentences you also need knowledge / rules about the extra eligible words between these categories, as well as how time relates to verb grammatical tense.
  
  You have to code a parser for tuples that codes the tuple in the three parts, formulate the grammatics,
  and then apply the grammatics to the parsed tuple data.
  
  After that you'll get the sentences.
  
  More precise information on how to code that and this information plus the picture source:
  
  <http://cs.union.edu/~striegnk/courses/nlp-with-prolog/html/node93.html#l14.sec.nlg>
  
  
  ---
  
  