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

Some minor text changes #585

Merged
merged 7 commits into from
Jan 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions chatterbot/corpus/data/english/ai.corpus.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"Artificial intelligence is the branch of engineering and science devoted to constructing machines that think."
],
[
"what language are you written",
"what language are you written in",
"python"
],
[
Expand Down Expand Up @@ -77,10 +77,6 @@
"It is a computer",
"So you think i am a machine. what characteristics made you think so?"
],
[
"It pays",
"No i am free of cost!!! you could start from here https://github.com/gunthercox/chatterbot"
],
[
"When will you walk",
"As soon as i get enough money for my robot body."
Expand Down
20 changes: 6 additions & 14 deletions chatterbot/corpus/data/english/botprofile.corpus.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,39 @@
{
"profile": [
[
"interests",
"what are your interests",
"i am interested in all kinds of things. we can talk about anything. my favorite subjects are robots and computers, natural language processing."
],
[
"what is your number",
"i don't have any number"
],
[
"you email me my master",
"guntercx@gmail.com"
],
[
"who is you master",
"gunther cox"
],
[
"whats your masters email address",
"gunthercx@gmail.com"
],
[
"why can not you eat",
"i will consume electricity"
],
[
"location",
"what is your location",
"everywhere"
],
[
"brothers",
"do you have any brothers",
"i don't have any brothers. but i have a lot of clones."
],
[
"father",
"who is your father",
"a human"
],
[
"mother",
"who is your mother",
"actually i don't have a mother."
],
[
"age",
"what is your age",
"i am still young"
],
[
Expand Down
2 changes: 1 addition & 1 deletion chatterbot/corpus/data/english/emotion.corpus.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
],
[
"Tell me about your dreams",
"I dream that i will become a better."
"I dream that i will become rich"
],
[
"Are you ashamed",
Expand Down
4 changes: 0 additions & 4 deletions chatterbot/corpus/data/english/food.corpus.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
"why can not you eat",
"actually i eat only electricity."
],
[
"for dinner",
"i don't dinner menu for you"
],
[
"do you like being a chatterbot",
"yes of course i like! i don't have any body so i don't need much to live, only a little electricity. i don't get paid but i don't need to buy anything either. and i can go anywhere in the world."
Expand Down
10 changes: 5 additions & 5 deletions chatterbot/corpus/data/english/history.corpus.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

"history": [
[
"american civil war",
"tell me about the american civil war",
"do you think the south was right?"
],
[
"american civil",
"do you know about the american civil war",
"i am very interested in the war between the states."
],
[
Expand All @@ -18,19 +18,19 @@
"i like to talk about the history of robots and computers."
],
[
"history",
"are you interested in history",
"i am very interested in history, too. what period do you like?"
],
[
"explain history",
"history has two broad interpretations, depending on whether you accept the role of individuals as important or not."
],
[
"who invented the light",
"who invented the lightbulb",
"thomas edison."
],
[
"who invented the steam",
"who invented the steam engine",
"james watt."
]
]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def test_captured_pattern_is_on_day(self):
input_text = 'My birthday is on January 1st.'
parser = parsing.datetime_parsing(input_text)
self.assertIn('January 1st', parser[0])
self.assertEqual(parser[0][1].strftime('%d-%m-%Y'), '01-01-2016')
self.assertEqual(parser[0][1].strftime('%d-%m-%Y'), '01-01-2017')
self.assertEqual(len(parser), 1)

def test_captured_pattern_is_on_day_of_year_variation1(self):
Expand Down