Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"What gender is the cat?" #34

Open
mackenzieankrom opened this issue Jan 20, 2019 · 5 comments
Open

"What gender is the cat?" #34

mackenzieankrom opened this issue Jan 20, 2019 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@mackenzieankrom
Copy link
Collaborator

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 Daniel061 added the bug Something isn't working label Jan 20, 2019
@Daniel061
Copy link
Owner

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
Copy link
Owner

Daniel061 commented Jan 23, 2019

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 Daniel061 self-assigned this Jan 23, 2019
@Daniel061
Copy link
Owner

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
Copy link
Owner

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
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants