subject

Create with PYTHON Create an Eliza like program. For a description of what Eliza is, look here
You should be able to ask Eliza about anything and include feelings, relationships
and activities. Eliza should respond sensibly.
You will need to use regular expressions in this class. Please refer to the resources
page to learn about regular expressions.
2 MUST HAVE
Your work must comply with the following:
• Your homework must be done in Python. You can use the re and math libraries
only.
• Your agent must ask for the user’s name and greet that user using her/his name:

• Your agent must recognize the following feelings: sadness, happyness and joy
and its derivates (e. g. sad, happy, joyful, joyfulness, saddened, etc.) within the
user’s input, and respond accordingly. HINT: Try to see the pattern in al these.

• Your agent should also recognize when a person says they are: ok, good and bad
within a user’s response and respond accordingly:
• Your agent must recognize verbs ending in ed and use the verb in its natural form
(infinitive) in the response. As long as it removes the ed part of the verb it will
be able to use the verb in its infinitive. (works 85% of the time):
• Your agent must recognize some relationship labels like "mother", "mom", "father", "dad", "brother", "sister", "friend" and respond appropriately:
• Uses regular expressions for all detections1

• Is able to maintain a dialogue no matter what the user input is, except for “bye”,
which should terminate the dialogue

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
We as humans write math expression in infix notation, e.g. 5 + 2 (the operators are written in-between the operands). in a computer’s language, however, it is preferred to have the operators on the right side of the operands, i.e. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix.write a program that takes an “infix” expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % (example infix expression: (7 - 3) / (2 + 2)postfix expression: 7 3 - 2 2 + /result: 1guidelines: 1. you will need to use stacks in three placesa. one for the parenthesis check [char stack]b. one during infix to postfix [char stack]c. one during evaluation [int stack]for a and b above, you can use same array and same push, pop method as both ofthem are char. but for evaluation you have int stack and you might consider to createanother push pop method to handle it. maybe push_int, pop_int, etc. or find otherstrategy to utilize existing push pop method2. you can create a function for obtaining operator priority. that function should take anoperator as input and return its priority as an integer. this function will you a lot andreduce repeated code3. during evaluation you will need to convert char into integer. example for single digit: char c = '5'; int x = c - '0';
Answers: 2
question
Computers and Technology, 22.06.2019 15:50
The file sales data.xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel.xlsm to find a nice color of gray.)
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 24.06.2019 07:40
What type of multimedia are live news feeds? live news feeds are examples of multimedia.
Answers: 2
You know the right answer?
Create with PYTHON Create an Eliza like program. For a description of what Eliza is, look here
Questions
Questions on the website: 13722367