#Sentence Parser (for API use)

4 messages · Page 1 of 1 (latest)

primal vale
#

Thinking of prompts that might be useful when called through the API. Something like this could be useful for making charts etc.


For each word, list the word, it's type, which words it connects to, and it's meaning in the context of the sentence, in YAML format:

The Quick Brown Fox Jumped Over The Lazy Dog.


Here's an example YAML format for the sentence:

yaml

  • word: The
    type: determiner
    connects_to: Quick, Lazy
    meaning: Referring to something specific that is already known or has been previously mentioned

  • word: Quick
    type: adjective
    connects_to: Brown, Fox
    meaning: Moving or able to move with great speed or agility

  • word: Brown
    type: adjective
    connects_to: Quick, Fox
    meaning: Of a color produced by mixing red, yellow, and blue, as of dark wood or rich soil

  • word: Fox
    type: noun
    connects_to: Quick, Brown, Jumped, Over
    meaning: A carnivorous mammal with pointed ears and a bushy tail, typically hunting small prey

  • word: Jumped
    type: verb
    connects_to: Fox, Over
    meaning: Move suddenly and quickly in a specified way

  • word: Over
    type: preposition
    connects_to: Jumped, Lazy
    meaning: Extending above or beyond a certain point

  • word: The
    type: determiner
    connects_to: Lazy, Dog
    meaning: Referring to something specific that is already known or has been previously mentioned

  • word: Lazy
    type: adjective
    connects_to: Over, Dog
    meaning: Unwilling to work or use energy; relaxed and easygoing

  • word: Dog
    type: noun
    connects_to: Over, Lazy
    meaning: A domesticated carnivorous mammal that typically has a long snout, an acute sense of smell, and a barking, howling, or whining voice

Note that the meaning of each word can vary depending on the context, and there may be other possible definitions for each word.

#

Adding 'Reply with only the YAML.'to the paragraph should remove the boilerplate. Each run is slightly different.

finite root
#

@primal vale What are you planning to using this for? This is useful!

primal vale
#

Thanks! And I've got a long term dream of mine to use LLM's to produce data that can be fed into other programs to refine the output and/or do GOFAI'ish things.

For now, mostly a demo of a potential way to use the API.