Heavily inspired by ChatterBot ( https://github.com/gunthercox/ChatterBot )
N - Not
A - An
A - AI
Just run the main.py!
Default it will run with default data.yaml
use main.py { yaml or json File }
to run alternative Yaml or Json File!
Basicly NAA work like a big if and else statement but use a yaml or json file like a AI Model inside there Triggers and Responds
The Json file have three part:
- Tag name - Like comment if not there the python code will rasie a error
- Triggers - Use for the if statement
- Responds - If statement responds
Note: Triggers must be lower case!
For example:
{
"Tag Name": {
"Triggers": [
"triggers"
],
"Responds": [
"Responds"
]
}
}
Or:
Tag Name:
Triggers:
- triggers
Responds:
- Responds
Special code:
- time - will return the time for the datelibary
- link ( Start with "http" or "https" ) - with open the link
- code - Need to create a new tag under Responds, which called Code
Note code tag might have security issue
For example:
Tag Name:
Triggers:
- triggers
Responds:
- code
Code: |
print("Hello World")
Answer is:
I'm lazy to learn pytorch!