-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wide range of changes including defects fixes, including stopping rec…
…ursive looop if no answer found Introduction of first and rest and also built in tags such as next and prev This also starts to move closer to full AIML 2.0 compliance measured against Rosebot 2.0 from Pandora bots ( which is not fun to work with )
- Loading branch information
Showing
190 changed files
with
185,831 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Alice2 grammar is the base grammar that shipped with Program-A the AIML 2. reference implementation written in | ||
Java. | ||
|
||
Its included in this project for completeness only and is not guaranteed to work at this time until, full testing | ||
of both the grammar and Program-Y implemented is finished | ||
|
||
If its anything like Alice, then its unlikely to be fully functional and will have broken and missing grammars | ||
|
||
K |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /bin/sh | ||
|
||
clear | ||
|
||
export PYTHONPATH=../../src/ | ||
|
||
python3 ../../src/programy/clients/console.py --config ./config.yaml --cformat yaml --logging ./logging.yaml --debug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /bin/sh | ||
|
||
clear | ||
|
||
export PYTHONPATH=../../src/ | ||
|
||
python3 ../../src/programy/clients/rest.py --config ./config.yaml --cformat yaml --logging ./logging.yaml --debug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This is the original Rosie AIML, produced by Pandora Bots, and hosted on GitHib https://github.com/pandorabots/rosie | ||
|
||
Its broken, out of date and does not fully work. However it is included in Program-Y for completeness | ||
|
||
If you are looking for a corrected version then check out rosie_fixed which is a fully working set of grammars | ||
based on rosie AIML files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /bin/sh | ||
|
||
clear | ||
|
||
export PYTHONPATH=../../src/ | ||
|
||
python3 ../../src/programy/clients/console.py --config ./config.yaml --cformat yaml --logging ./logging.yaml --debug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
The original Rosie AIML is produced by Pandora Bots, and hosted on GitHib https://github.com/pandorabots/rosie | ||
|
||
Unfortunately its broken in many ways, grammars are missing, srai tags don't work properly and there are conflicting grammars | ||
|
||
This project is therefore an attempt to provide a grammar, based on Rosie that can be an actual base for someone to | ||
use when building their own Chatbot | ||
|
||
This README will contain a history of the issues found and the fixes applied | ||
|
||
------------------------------------------------------ | ||
|
||
1) Missing grammars | ||
SOUND is missing | ||
Added mapping file for animal:sound | ||
Added mapping file for animal:legs | ||
Modified grammars so that SOUND and LEGS now work | ||
|
||
2) Built in maps, not defined in spec | ||
|
||
Pandora, who built rosie have a number of in built maps, the 2 primary ones are | ||
successor and predecessor which turn the next or previous integer respectively | ||
|
||
3) Built in set, not defined in spec | ||
|
||
Pandora who built rosie, have a number of in built sets, primary one is number | ||
which checks if text passed in is numeric | ||
|
||
Added successor map | ||
Added predecessor map | ||
Added singular map -> Also singular mapping file | ||
Added plural map -> Also singular plural file | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<aiml> | ||
<!-- File: animal.aiml --> | ||
<!-- Last modified: September 5, 2014 --> | ||
<!-- --> | ||
<!-- This AIML file is part of the Rosie knowledge base. --> | ||
<!-- --> | ||
<!-- Rosie is a fork of the ALICE2 brain, and is optimized for use on the Pandorabots platform --> | ||
<!-- --> | ||
<!-- Rosie is Copyright © 2014 by Pandorabots, Inc. --> | ||
<!-- --> | ||
<!-- The Rosie brain is released under the terms of the GNU Lesser General --> | ||
<!-- Public License, as published by the Free Software Foundation. --> | ||
<!-- --> | ||
<!-- This file is distributed WITHOUT ANY WARRANTY; without even the --> | ||
<!-- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --> | ||
<!-- --> | ||
<!-- For more information: --> | ||
<!-- http://www.pandorabots.com --> | ||
<!-- http://www.alicebot.org --> | ||
<!-- --> | ||
|
||
<category> | ||
<pattern>WHAT DOES A <set>animal</set> SAY ^ | ||
</pattern> | ||
<template> | ||
<srai>SOUND | ||
<star/> | ||
</srai> | ||
</template> | ||
</category> | ||
<category> | ||
<pattern>WHAT DO <set>animals</set> SAY ^ | ||
</pattern> | ||
<template> | ||
<srai>SOUND | ||
<srai>SINGULAR | ||
<star/> | ||
</srai> | ||
</srai> | ||
</template> | ||
</category> | ||
<category> | ||
<pattern>WHAT SOUND DOES # <set>animal</set> ^ | ||
</pattern> | ||
<template> | ||
<srai>SOUND | ||
<star index="2"/> | ||
</srai> | ||
</template> | ||
</category> | ||
<category> | ||
<pattern>WHAT SOUND DO <set>animal</set> ^ | ||
</pattern> | ||
<template> | ||
<srai>SOUND | ||
<srai>SINGULAR | ||
<star index="1"/> | ||
</srai> | ||
</srai> | ||
</template> | ||
</category> | ||
<category> | ||
<pattern>HOW DOES # <set>animal</set> ^ | ||
</pattern> | ||
<template> | ||
<srai>SOUND | ||
<star index="2"/> | ||
</srai> | ||
</template> | ||
</category> | ||
|
||
<category> | ||
<pattern>HOW MANY LEGS DOES ^ <set>animal</set> # | ||
</pattern> | ||
<template> | ||
<srai>LEGS | ||
<star index="2"/> | ||
</srai> | ||
</template> | ||
</category> | ||
<category> | ||
<pattern>HOW MANY LEGS ^ <set>animal</set> # | ||
</pattern> | ||
<template> | ||
<srai>LEGS | ||
<srai>SINGULAR <star index="2"/></srai> | ||
</srai> | ||
</template> | ||
</category> | ||
<category> | ||
<pattern>HOW MANY LEGS ^ <set>animals</set> # | ||
</pattern> | ||
<template> | ||
<srai>LEGS | ||
<srai>SINGULAR <star index="2"/></srai> | ||
</srai> | ||
</template> | ||
</category> | ||
|
||
<category> | ||
<pattern>_ 1 <set>animal</set> * | ||
</pattern> | ||
<template> | ||
<srai> | ||
<star/> | ||
1 | ||
<srai>PLURAL | ||
<star index="2"/> | ||
</srai> | ||
<star index="3"/> | ||
</srai> | ||
</template> | ||
</category> | ||
|
||
<category> | ||
<pattern>_ 1 | ||
<set>animal</set> | ||
</pattern> | ||
<template> | ||
<srai> | ||
<star/> | ||
1 | ||
<srai>PLURAL | ||
<star index="2"/> | ||
</srai> | ||
</srai> | ||
</template> | ||
</category> | ||
|
||
<category> | ||
<pattern>SOUND *</pattern> | ||
<template> | ||
A <star/> makes a <map name="animalsounds"><star/></map> sound. | ||
</template> | ||
</category> | ||
|
||
<category> | ||
<pattern>LEGS *</pattern> | ||
<template> | ||
A <star/> has <map name="animallegs"><star/></map> legs. | ||
</template> | ||
</category> | ||
|
||
<category> | ||
<pattern>SINGULAR *</pattern> | ||
<template> | ||
<map name="singular"><star/></map> | ||
</template> | ||
</category> | ||
|
||
<category> | ||
<pattern>PLURAL *</pattern> | ||
<template> | ||
<map name="plural"><star/></map> | ||
</template> | ||
</category> | ||
|
||
|
||
</aiml> |
Oops, something went wrong.