19-1-skku-oss / 2019-1-oss-l3 Goto Github PK
View Code? Open in Web Editor NEWChatterBot
Home Page: https://19-1-skku-oss.github.io/2019-1-OSS-L3/
License: BSD 3-Clause "New" or "Revised" License
ChatterBot
Home Page: https://19-1-skku-oss.github.io/2019-1-OSS-L3/
License: BSD 3-Clause "New" or "Revised" License
psychology.yml 데이터를 번역할 분이 필요합니다.
양이 많으니 나눠서 하셔도 됩니다.
활동 내용 및 프로젝트 소개가 아직 미흡합니다.
자신이 활동한 내용과, 지금까지 쓴 글을 정리하여
홈페이지에 글을 작성해 주시면 감사하겠습니다
@19-1-skku-oss/2019-1-oss-l3
https://19-1-skku-oss.github.io/2019-1-OSS-L3/members/
https://19-1-skku-oss.github.io/2019-1-OSS-L3
에 문제가 있는지 확인하고 문제가 있다면 수정 바랍니다.
https://19-1-skku-oss.github.io/2019-1-OSS-L3/posts/
https://19-1-skku-oss.github.io/2019-1-OSS-L3/members/
이 페이지의 영어 문구를 번역, 또는 수정할 사람도 필요합니다.
필요 없는 부분은 지워주시길 부탁드립니다.
또한 Main Page에 링크가 잘 못 걸려 있는 상태입니다. (저희가 이루어 나가고 있는 공간입니다. 아래 버튼)
Post 화면으로 링크가 걸려있는데 팀 레포지트리 주소로 바꿔주시면 감사하겠니다.
SpecificResponseAdapter 클래스의 25열 코드인
if statement == self.input_text
에서 두 문자열이 동일함에도 불구하고 False를 반환한다고 함
학습 데이터를
추가할 수 있는 폴더가 레포지트리에 추가되었습니다. 많은 기여 바랍니다
원 리포지트리 이슈에서 가져옴
Chatterbot = 1.0.5
Python 3.7.3 (64 bit)
MongoDB 4.0.9 (64 bit)
에서 발생함
my_data.json:
{"conversations": [["pizza", "ice cream"], ["ice cream", "do you like it?"], ["do you like it?", "do you like pizza?"]]}
이렇게 데이터를 세팅하고
trainer = ListTrainer(chatbot)
trainer.export_for_training('./my_data.json')
코드를 실행하면
{"conversations": [["pizza", "ice cream"], ["ice cream", "do you like it?"], ["do you like it?", "do you like pizza?"], ["pizza", "ice cream"], ["ice cream", "do you like it?"], ["do you like it?", "do you like pizza?"], ["ice cream", "do you like it?"]]}
데이터가 두배로 증가하여 작동하며, ListTrainer에 문제가 있는 것으로 보임.
이 데이터를 번역할 분이 필요합니다.
gh-pages에 있는 글들을 정리하여 README.md에 나타내 주실 분이 필요합니다.
response_selection.py 에 해당 기능이 구현되어 있지 않습니다.
해당 기능을 추가하여 답변의 신뢰도를 높여보도록 할 계획입니다.
(이슈)[https://github.com//issues/2]의 연장선입니다.
Wiki에 기여 목록 + 프로젝트 소개 순으로 정리가 필요합니다
각자 자기가 기여한 부분을 정리합시다
원 레포지트리의 1742번 이슈를 보고 재밌어보여 가져왔습니다.
빠르게 개발하면 내일 중으로 완성할 수 있을 것 같습니다.
(함수 한두개만 작성하면 되고 위키피디아에는 API가 존재함)
혹시 참여하고 싶으신 분은 토요일 11시까지 코멘트 남겨주세요
이 데이터를 번역할 분이 필요합니다.
원 리포지트리에 있는 이슈임.
학습을 시켜도 답변은 그대로라는 내용.
단순히 Select 중에 버그가 있는 것인지, 인공지능 알고리즘이 미흡한 것인지 파악이 필요함
전자에 해당하는 경우 수정할 예정.
버그가 일어나는 코드는
from chatterbot import ChatBot
from chatterbot.conversation import Statement
from chatterbot.trainers import ChatterBotCorpusTrainer
chatbot = ChatBot(
'Thomas',
storage_adapter='chatterbot.storage.SQLStorageAdapter',
database="botData.sqlite3"
)
trainer = ChatterBotCorpusTrainer(chatbot)
trainer.train(
#'chatterbot.corpus.chinese',
'data/saintseiya.yml'
)
def get_feedback():
text = input("User:")
if 'y' in text.lower():
return False
return True
print('Begin feedback learning:')
while True:
try:
text=input('User:')
if text=='stop':
break
input_statement = Statement(text)
response = chatbot.generate_response(input_statement)
print('Bot:Is "{}" "{}"\'s real response? \n'.format(
response.text,
input_statement.text
))
print('Please input y/Yes or other/No: ')
if get_feedback():
print('Please input real response:')
correct_response = Statement(text=input("User(real):"))
chatbot.learn_response(correct_response, input_statement)
print('Bot:study+1!')
else:
print('Bot:'+response.text)
except (KeyboardInterrupt, EOFError, SystemExit):
break
User: What is the game of Saint Setya?
Bot: Is "What is the game of Saint Setya?" "What is Saint Setya?"'s real response?
User:n
Please input real response:
User(real):The Saint Seiya is a game released by Leju Company.
Bot: study+1
User:What is the game of Saint Setya?
Bot: Is "What is the game of Saint Setya?" "What is Saint Setya?"'s real response?
이 데이터를 번역할 분이 필요합니다.
from chatterbot import parsing
text = u"Your dental appointment with Dr P. Delvour is scheduled today at 9:00pm."
parsing.datetime_parsing(text)
해당 코드를 실행했을 때 today와 9:00을 파싱해서
잘못된 대답을 내놓는데 (datetime.now() + 9시를 하여 잘못된 값을 내놓음)
regex 가 잘못 작성되었거나
lambda가 잘못 작성된 것으로 추정됨
python_telegram_bot 모듈을 사용하여 연동할 예정입니다.
원본 레포지트리 이슈에서 가져왔습니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.