I'm currently trying to make an AI program. I'm going start off small and create a word recognition program that takes the sentence that the user inputs, rephrases it, and then outputs a new sentence. Since it will only repeat what the user inputs, I think I'll nickname the project Simon. Eventually I hope to give Simon a voice synthesizer and a personality. Right now I'm creating a word list for Simon to use. (1000 words)
Ok, so far the only thing ive accomplished is getting the program to separate sentences and words. dim i,s,w dim yourname$ dim comment$, text$(2999)(199),sentence,word,sentencecount,wordcount(2999)
clearkeys() input "your name: ", yourname$
clearkeys() print yourname$+": " input comment$ for i = 0 to len(comment$) if mid$(comment$, i, 1)<>" " then text$(sentence)(word) =text$(sentence)(word)+ mid$(comment$, i, 1) elseif mid$(comment$, i, 1)=" " then wordcount(sentence)=wordcount(sentence)+1 word=word+1 elseif mid$(comment$, i, 1)="." or mid$(comment$, i, 1)="!" or mid$(comment$, i, 1)="?" then sentence=sentence+1 endif next
for w=0 to wordcount(0) sleep(len(text$(0)(w))*60) printr "simon: "+text$(0)(w) next
can someone help me with making a wordlist. i need the words to be in an array - vocabulary(1999) i want atleast 100 words to start off with, the only reason why i made the array so large is so that the program has room in the array to learn more words
This is pretty cool. How is the learning words going to work? I assume it sees the word in a sentence and picks out other words that it recognizes as nouns, adjectives, and pronouns then takes a guess at the new word's part of speech? then it would be able to place the word in a sentence... Anyway no real clue how to go around with making somthing like this work but it sounds cool!
here how it works: you input a comment the program reads each character in the comment breaks the string you input into separate words at spaces breaks the string you input into separate sentences at punctuation example: inputtext$="hello world. i like coffee! who are you? 'program reads the string inputtext$ and separates it into the string array text$(sentence)(word) text$(0)(0)="hello" : text$(0)(1)="world" text$(1)(0)="i":text$(1)(1)="like":text$(1)(2)="coffee" text$(2)(0)="who":text$(2)(1)="are":text$(2)(2)="you" -------------------------------
I'm going to create a word list for the program to use before i try to get it to learn new words the word list will be several arrays - noun$(999),verb$(999),adjective$(999),etc after the program separates the string, it will search for the words in the word lists to try to find what part of speech it is
Lolololol... Yeah just make sure you code your AI with a bit more intelligence. It hardly remembers anything you said before. Once it changes the subject you have to go through hell to get it back on track. Thats somthing else you should work on then. Memory.
Post by Wayne Rayner on Jan 12, 2010 20:24:25 GMT -5
lol Awesome lol that bot should be named dumb bot. Seriously it's dumb. Probably as smart as me but it's all good. It probably has my memory, and it's hard to get me back on track after you talk about one thing.
ANyways make your bot without blonde memory and it should be awesome. Make sure it can help me with my assignments for school lol jokes but that would be awesome don't you think