Answers.Body: <p>How do you define "meaningful"? Generally, you would start from concepts and meanings, and then realise them in syntactic structures using lexical items (words). You seem to want to start in the middle somehow.</p>
  
  <p>For turning a semantic representation into a valid sentence, you would use a generator; these are often based on grammars. Examples exist which take a grammar, fill in random words, and create a syntactically well-formed sentence; often they will, however, be rather non-sensical or meaningless. Have a look at this site which <a href="http://zompist.com/syntax.html" rel="nofollow noreferrer">describes the Syntax Construction Kit</a>. The author, Mark Rosenfelder, links to a number of toy programs which do exactly that. Just substitute his lexicon with the list of words created by your LDA process. See for example this <a href="http://zompist.com/gtg.html" rel="nofollow noreferrer">generator based on generative grammar</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-23T09:02:32.013Z
Answers.Text: Really appreciate your valuable suggestion it really helped me. The link of the API tool which you shared is a paid tool. I cannot pay for that as I am a student. Is there any free link or any student version?
  
  Regards,
Answers.UserDisplayName: shani
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-23T12:47:24.437Z
Answers.Text: @shani Sorry, no idea! Might be an idea to contact the author?
Answers.UserDisplayName: Oliver Mason
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-10T10:32:35.160Z
Answers.LastActivityDate: 2019-04-10T10:32:35.160Z
Answers.UserDisplayName: Oliver Mason
Body: <p>I have set of topics generated using LDA and  like {code, language, test , write, function}, {class, public, method, string, int} etc and I want to make meaningful sentence/sentences from these words using  api or libraries.  How do I implement this with NLTK and(or) Machine Learning? Any suggestions as to how I should go about this?</p>
  
Tags: <machine-learning><natural-language-processing>
Title: How to make meaningful sentences from a set of words?
UserDisplayName: shani
ThreadText: # How to make meaningful sentences from a set of words?
  
  (Asked by: username_0 on 2019-04-10)
  
  I have set of topics generated using LDA and like {code, language, test , write, function}, {class, public, method, string, int} etc and I want to make meaningful sentence/sentences from these words using api or libraries. How do I implement this with NLTK and(or) Machine Learning? Any suggestions as to how I should go about this?
  
  **Tags:** machine-learning, natural-language-processing
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-04-10. Score: 1
  
  How do you define "meaningful"? Generally, you would start from concepts and meanings, and then realise them in syntactic structures using lexical items (words). You seem to want to start in the middle somehow.
  
  For turning a semantic representation into a valid sentence, you would use a generator; these are often based on grammars. Examples exist which take a grammar, fill in random words, and create a syntactically well-formed sentence; often they will, however, be rather non-sensical or meaningless. Have a look at this site which [describes the Syntax Construction Kit](http://zompist.com/syntax.html). The author, Mark Rosenfelder, links to a number of toy programs which do exactly that. Just substitute his lexicon with the list of words created by your LDA process. See for example this [generator based on generative grammar](http://zompist.com/gtg.html).
  
  > **Comments:**
  > **username_0**: Really appreciate your valuable suggestion it really helped me. The link of the API tool which you shared is a paid tool. I cannot pay for that as I am a student. Is there any free link or any student version?  Regards,  
  > **username_1**: @shani Sorry, no idea! Might be an idea to contact the author?  
  
  ---
  
  