Daniel061 / Sophie6.1

AI from stumbling Baby to Sentient being.
GNU General Public License v3.0
1 stars 1 forks source link

"What gender is the cat?" #34

Open mackenzieankrom opened 5 years ago

mackenzieankrom commented 5 years ago

Describe the bug When asked "What gender is the cat?" she responded with the cat's name.

To Reproduce Steps to reproduce the behavior:

  1. Say "The cat is black"
  2. Answer "yes" to her question of "A black cat?"
  3. Say "Precious is a cat" and answer her questions about the name and gender.
  4. Ask "What gender is the cat?"
  5. Error, she responds with the cat's name.

Expected behavior She would respond either Boy or Girl.

Version: Baby 6 (Newest)

Daniel061 commented 5 years ago

Added code to prevent the error, she no longer replies that way. However and to be fair to the literal logic of Baby, 'gender' wasn't previous defined in the original flow described. The new logic will define gender as a noun now with the question of "What gender is the cat?" The association of gender to cat and indirectly to Precious is proving difficult. It's sort of ambiguous. I have moved this bug to 'In Progress'.

Daniel061 commented 5 years ago

Still working on this Issue.

Gender becomes a noun if you try to define it and it gets gender assignment based on the statement.

Asking "what gender is the cat" still can't pull the related data but asking "is Precious a girl" or "What's the cat's name" works even with the dual contractions.

She recognizes cat's and labels it as Ownership and breaks down what's to what is. That's a first

step to contraction handling. See Issue #19

Asking "is Precious a girl or boy" results in no but asking "is Precious a boy or girl" results in yes.

So Baby is currently not recognizing the dual option. I'll try to catch the dual question option in the next version.

Thanks for the testing help!

Daniel061 commented 5 years ago

After researching the word "gender" I find that it has limited use and meaning therefore I assigned it a type to prevent the assignment of noun to it.

Still, in the above flow, "What gender is the cat?" is not defined, specifically the cat is defined as only black. The proper noun Precious is assigned, so asking "What gender is Precious?" will result in the correct answer.

Asking "What is your gender?" or "What's your gender?" will result in a correct answer. Asking "What gender are you?" isn't resolved yet. That just needs a little code to handle the flipping of the target data.

I believe your real goal in showing this error, is to get Baby to reference cat as a subject used before in conversation and relate the question to Precious. Basically context tracking.

I agree but think on this;

cat -> black Precious -> cat Precious -> girl

Now walk that back from Precious to cat to ?.

You end up with cat -> black

Ideas??

Daniel061 commented 5 years ago

Currently, if you say, "the cat is a girl" she will say ok After talking about Tot, you can ask is she's a girl or even if the cat's a girl The problem is associating related adjectives and related nouns. Related adjectives are all encompassing and can't be reversed searched, unlike related nouns.
If you said "the cat is a girl" that implies all cats are girls. you see? And if Tot is a cat, then she can only be a girl. In this case yes but not always. So in this logic, girl is an adjective of cat, or more properly gender. With indirect comparisons, adjectives or gender must be excluded between noun comparisons. So in trying to keep the program operation as a NLP (Natural Language Processor), back references to adjectives or gender are not done.

You should try the new version, 6.1.006.01, she works with contractions, gender references, her own awareness and now storage and retrieval to build on what she's learned.

For some reason, she learns best if you start out teaching her an adjective, i.e the cat is black. I'll have to correct this some way. It may be because that's the first form she can understand.

mackenzieankrom commented 5 years ago

Saying "The cat is a girl" shouldn't imply that all cats are girls, if Baby is making those kinds of assumptions, that will make things very difficult. I will test her and see if I can figure out how to make her only associate the gender with the specific noun/ Proper Noun in that instance.