0
$\begingroup$

Is there an AI application that can produce syntactically (and semantically) correct sentences given a bag of words? For example, suppose I am given the words "cat", "fish", and "lake", then one possible sentence could be "cat eats fish by the lake".

$\endgroup$
  • $\begingroup$ It is possible to construct many syntactically correct sentences here, but most of them would be nonsense. For instance "cat pretends to be a fish that has swallowed a lake" or "purple cat sings about yellow fish flying high above a lake" or "lake eats cat by the fish" (not realisable physically, but semantically correct as it has meaning). Can you describe how the possible sentences should be constrained? Could you give some more examples and some information about your goal? $\endgroup$ – Neil Slater Apr 15 at 20:37
  • $\begingroup$ In my case any sentence which contains these words are OK, if it makes sense.My goal is to describe a scene to join words together, it would be wonderful if there's provided web service online, I can input words and it returns a sentence to me $\endgroup$ – gloomyson Apr 16 at 5:26
  • $\begingroup$ There might be a service online, but I doubt it would be anything but a toy or research example. Could you please add "if it makes sense" and define that carefully in the question? You can use the edit link to add clarifying details. For instance, do any of my example sentences "make sense". Please add more examples of inputs/outputs that both do make sense, and that do not make sense. $\endgroup$ – Neil Slater Apr 16 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.