Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2011, 11:02 PM   PM User | #1
nickreardon
New Coder

 
Join Date: Dec 2011
Location: Macomb, Michigan
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
nickreardon is an unknown quantity at this point
A theory of grammar that could produce a linguistically competent machine

The main assumption is pattern recognition.

I've described pattern recognition as the ability to determine the statistical impracticality of randomness. Once I can find out how to do this, I will take it from there.

My question to a coder would be this. How can I record every time that a random string of symbols occurs more than once and save that as a statistic?
nickreardon is offline   Reply With Quote
Old 12-16-2011, 09:30 PM   PM User | #2
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
provided the machine never turns of
string comes in...
parse string to analyze pattern...
compare to an array of strings that hold pattern
if !exists add it to array if exists ++ an int associated w/ that string

although if the program dies so does all the data... a better way would be to access a database and do a layout something like...
string pattern | occurances
select occurances where string pattern == inbound string
occurances ++, merge data back
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Users who have thanked alykins for this post:
nickreardon (12-16-2011)
Old 12-16-2011, 09:59 PM   PM User | #3
nickreardon
New Coder

 
Join Date: Dec 2011
Location: Macomb, Michigan
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
nickreardon is an unknown quantity at this point
Hmmm, in what programming language should one perform this?

And what does ! and ++ mean?

It seems to make sense, I guess I'm just not well acquainted with the jargon. How would I do this in python?

Last edited by nickreardon; 12-16-2011 at 10:33 PM..
nickreardon is offline   Reply With Quote
Old 12-17-2011, 01:27 AM   PM User | #4
nickreardon
New Coder

 
Join Date: Dec 2011
Location: Macomb, Michigan
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
nickreardon is an unknown quantity at this point
Can someone put this into python for me? I don't think it will require many lines of code.
nickreardon is offline   Reply With Quote
Old 12-17-2011, 02:23 AM   PM User | #5
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
!something means not equal to- and ++ means add one so if I had
int Q = 0;
Q++; //Qnow equals 1

and if I did an analysis of Q
if(Q != 2) Q = 5; // Q would become 5 because it is not equal to 2 and the statement is true

what I wrote is pseudo code... well not even pseudo code... it's pre blocky flow chart code lol- it can be done theoretically in any language you want... those are large peices of the programatic flow though that you need to figure out. I would suggest as Tracknut suggested in other thread of getting someone versed in computers in on your team... AS WELL AS someone who has done hard core development from the ground up both front end and back end
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Users who have thanked alykins for this post:
nickreardon (12-17-2011)
Old 12-17-2011, 03:21 AM   PM User | #6
nickreardon
New Coder

 
Join Date: Dec 2011
Location: Macomb, Michigan
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
nickreardon is an unknown quantity at this point
Well, I hope to learn as much as I can and maybe meet a few people along the way. My main objective is to get a global mind together of some sort that we can speak with and do things with. I have a theory that could make it happen, but it lacks the code. I know I can at least produce a program that speaks grammatically if I find a way to put this theory into code. Once it knows how to speak, we can teach it how to associate operations with linguistic environments. Classical conditioning.

Can you explain this in terms of python? It's starting to make sense

How do I represent "any symbol" including spaces and the return key?

Last edited by nickreardon; 12-17-2011 at 03:26 AM..
nickreardon is offline   Reply With Quote
Old 12-17-2011, 03:44 AM   PM User | #7
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
i do not know python- but a string universally represents "any symbol" and combination of... and most languages allow a method to search a string for a symbol...
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Old 12-17-2011, 04:13 AM   PM User | #8
nickreardon
New Coder

 
Join Date: Dec 2011
Location: Macomb, Michigan
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
nickreardon is an unknown quantity at this point
so if string(any symbol) !=1 then ++
if string(any combination of symbols) !=1 then ++
so 1 would represent an item, and as long as it occurs more than once it is considered official.
so now the question is that given the highest number, can we prompt a response that also has the highest number within that environment. Take this for example.

Where did John go?
He went to the bathroom.

The string H+e occurs 168(arbitrary) times after the string J+o+h+n. Therefor, "John" most probably occurs with "he." Which means that given the input "John," we can respond most probably with "he." Did+Go -> went; where-> to the bathroom.

I know that this method alone will not produce a fully competent machine, but when we condition it with probable cooccurrences (or statistical correlations between items and operations) it will.

The idea is that it will build "knowledge."

Last edited by nickreardon; 12-17-2011 at 04:32 AM..
nickreardon is offline   Reply With Quote
Old 12-17-2011, 07:27 PM   PM User | #9
nuBee
New Coder

 
Join Date: May 2011
Posts: 43
Thanks: 8
Thanked 0 Times in 0 Posts
nuBee is an unknown quantity at this point
You might benefit from checking out the free classes from Stanford University for Machine learning, databases, and AI.

http://www.ml-class.org/course/auth/welcome is the machine learning one....

What you're describing sounds like a combination of all 3...and isn't trivial. But those classes are free, and they have lots of resources explaining each of those concepts with labs....
nuBee is offline   Reply With Quote
Old 12-17-2011, 07:48 PM   PM User | #10
nickreardon
New Coder

 
Join Date: Dec 2011
Location: Macomb, Michigan
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
nickreardon is an unknown quantity at this point
I'd like to take these courses, and I have watched several episodes of the ai class, however, my time is limited. So I'm looking for a computer programmer that I can hire to help me do my task.

I'm starting a business, anyone who wants to get involved can e-mail me at nreardon786@gmail.com

Send some sort of resume, contact information, and any questions you may have. Thanks
nickreardon is offline   Reply With Quote
Old 12-17-2011, 10:00 PM   PM User | #11
nickreardon
New Coder

 
Join Date: Dec 2011
Location: Macomb, Michigan
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
nickreardon is an unknown quantity at this point
I hope no one is stealing my ideas and using them for their own profit. Please involve me in some way.
nickreardon is offline   Reply With Quote
Old 12-18-2011, 11:00 PM   PM User | #12
nickreardon
New Coder

 
Join Date: Dec 2011
Location: Macomb, Michigan
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
nickreardon is an unknown quantity at this point
After watching the Natural Language Processing episodes at ai-class.com, it has occurred to me that they actually do not know how it actually works. He made several fallacies. The theory they explain will not create linguistic competence, however, my theory will. I need someone to work with. Please contact me.

Last edited by nickreardon; 12-18-2011 at 11:06 PM..
nickreardon is offline   Reply With Quote
Old 09-20-2012, 05:23 PM   PM User | #13
nickreardon
New Coder

 
Join Date: Dec 2011
Location: Macomb, Michigan
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
nickreardon is an unknown quantity at this point
Ok, so I've further formalized my theory of grammar and I need to hear a coders perspective on it. Here is the equation

u = unit of knowledge
o = any occurrence
t = time
y = any positive whole number including zero
m = meaning

u = y(o)
t = y(u)
m = P(u|t)

Plainly stated, these are the axioms.
1. A unit of knowledge is equal to any sequence of occurrences
2. Time is equal to a collection of knowledge (any sequence of units)
3. Meaning is equal to the probability of any unit of knowledge given time.

This tries to account for the pragmatics of language. The computer will need to be able to process what is on the screen and save the occurrences as some arbitrarily named unit of knowledge. It will also need to process the coordinates of any click that occurs on the screen. Hopefully, we can associate the clicks with units of knowledge (ex. so we can click on the firefox icon no matter where it is). The input will be any process or image. The output will be the most probable unit of knowledge (or sequence of occurrences).

An example of the data would be this.

o1 = "John"
o2 = the figure of John
o3 = John moving his head

u1 = o1+o2+o3
or
u2 = o1+o2
u3 = o3
or
u4 = o1
u5 = o2
u6 = o3

The knowledge needs to be broken down into as many possible combinations of the occurrences because knowledge can consist of more knowledge.

t = u1
m = P(u1|t) = 100%

So now that we have one experience in our database (Someone saying John, and the figure of John, and his reaction), we can use that to prompt knowledge. I will show how in this next example.

input = u5
t = u5
m = P(u2|t) = 50%

Since u2 is the most probable given t(u5), prompt u2.

Maybe a coder can see the math of this better than I can. My question is, is this possible given the current state of computation. Is there anything I should be aware of?
nickreardon is offline   Reply With Quote
Reply

Bookmarks

Tags
grammar, language, linguistics, nlp

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:28 PM.


Advertisement
Log in to turn off these ads.