Skip to content

Commit

Permalink
test_aiml
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Feb 10, 2022
1 parent 10e8468 commit 4ea0f79
Show file tree
Hide file tree
Showing 200 changed files with 1,767,436 additions and 662 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@

NotAIML:
cd prolog/notaiml/
cat README
# This dirrectory

Contains a non Language Model chatbots

Douglas Miles wrote an AIML interpreter called ProgramK about 15 years ago
ProgramK:
cd prolog/programk/
cat README

Annie Ogborns Chatbot system "NotAIML"
NotAIML:
cd prolog/notaiml/
cat README


54 changes: 54 additions & 0 deletions aiml/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

FILE=$1

rm /tmp/$FILE.tmp -f
cp $FILE /tmp/$FILE.tmp
function SED {
sed -e "${1}" -i /tmp/$FILE.tmp
}


SED ':a;N;$!ba;s/\n/ /g'
SED 's|<aiml|\n<aiml|g'
SED 's|aiml>|aiml>\n|g'
SED 's|</aiml|\n</aiml|g'

SED 's|<topic|\n<topic|g'
SED 's|topic>|topic>\n|g'
SED 's|</topic|\n</topic|g'
SED 's| version="1.0"||g'



SED 's|<category/>|<category/>\n|g'
SED 's/<category>/\n<category>/g'
SED 's/<?xml version/\n<?xml version/g'
SED 's|<!-- Annotated|\n<!-- Annotated|g'
SED 's|<!-- This|\n<!-- Annotated|g'
SED 's|<!-- |\n<!-- |g'
SED 's|-->|-->\n|g'
SED 's|\t| |g'
SED 's|[*]<| *<|g'
SED 's|>[*]|>* |g'
SED 's|[_]ASTRONOMY|_ ASTRONOMY|g'

SED 's| | |g'
SED 's| | |g'
SED 's| <|<|g'
SED 's|> |>|g'
SED 's| \n|\n|g'
SED 's|\n |\n|g'
SED 's| \n|\n|g'
SED 's|\n |\n|g'
SED '/^<?xml /d'
SED '/^^[[:space:]]<?xml /d'
SED '/^<[/]aiml/d'
SED '/^<aiml/d'
SED 's| \n|\n|g'
SED 's|\n |\n|g'
SED '/^[[:space:]]*$/d'

echo "<aiml>" > $FILE
cat /tmp/$FILE.tmp >> $FILE
echo "</aiml>" >> $FILE

225 changes: 0 additions & 225 deletions aiml/common/AAA_Input.aiml.bak

This file was deleted.

Loading

0 comments on commit 4ea0f79

Please sign in to comment.