프로젝트
GitHub에서 보기
wadetb/eliza
소개
Eliza 챗봇의 Python 구현
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalEliza chatbot in Python
Loosely based on Charles Hayden's version in Java, at http://chayden.net/eliza/Eliza.html.
I feel that it is fairly complete. However there are some holes, as the library was written immediately prior to my discovery of Joseph Weizenbaum's own description of the original program, which is quite detailed, along with the original "doctor" script. Oh well. A copy of that article is provided in the repo as a reference to the correct behavior.
Usage
Can be run interactively:
$ python eliza.py
How do you do. Please tell me your problem.
> I would like to have a chat bot.
You say you would like to have a chat bot ?
> bye
Goodbye. Thank you for talking to me.
...or imported and used as a library:
import eliza
eliza = eliza.Eliza()
eliza.load('doctor.txt')
print(eliza.initial())
while True:
said = input('> ')
response = eliza.respond(said)
if response is None:
break
print(response)
print(eliza.final())
관련 프로젝트 살펴보기
불러오는 중…