Skip to content

🎱 A sentence parser that identifies subjects and verbs and stores them into memory

License

Notifications You must be signed in to change notification settings

geooot/layman-script

Repository files navigation

layman-script

layman-script

A sentence parser that identifies subjects and verbs and stores them into memory. Questions (who or what questions) can also be queried in order to get certain responses.

Example

layman-script works best with simple sentances

> George likes pie

Now you can ask...

> Who likes pie?
'george'
> Does George like pie?
[True]
> What does George like?
['pie']

You can also include multiple subjects and/or verbs

> George, Dylan, and Jordan went to the movies
> Who went to the movies?
['george', 'dylan', 'jordan']

How to install

Install with pip

$ pip install git+https://github.com/geooot/layman-script.git

Note: root access may be necessary!

$ sudo pip install git+https://github.com/geooot/layman-script.git

Dependencies:

  • Python 3 (For REPL otherwise python2 will work)

How to use:

For the REPL use

$ layman

Available arguments

  • -f "filename.txt" pass a file to be read

Commands in the repl

  • !q exit repl
  • !json print memory JSON

About

🎱 A sentence parser that identifies subjects and verbs and stores them into memory

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages