Coder Social home page Coder Social logo

2019-1-oss-l3's Introduction

This page forked from this repository.

TEAM L3

Project : ChatterBot

ChatterBot: Machine learning in Python

프로젝트 설명

ChatterBot은 대화 목록을 학습하여 대답할 수 있는 Python 기반의 챗봇 엔진입니다. ChatterBot은 언어 독립적으로 설계되어 모든 언어를 학습하고 말할 수 있습니다.

팀원 정보

팀장

이름: ###
학번: 201831###
이메일: ###@gmail.com
GitHub ID: ###

팀원

이름: 강원모
학번: 2017312381
이메일: [email protected]
GitHub ID: DropFL

이름: 이승재
학번: 2016314718
이메일: [email protected]
GitHub ID: rotmdwo

이름: 조규상
학번: 2015314136
이메일: [email protected]
GitHub ID: kyusang200

이름: 최민석
학번: 2018312790
이메일: [email protected]
GitHub ID: snowdolf99

개발 환경 구축 방법

기여 목록

  • 여기에서 확인 할 수 있습니다.

프로젝트 구조

  • 여기에서 확인할 수 있습니다.

프로젝트 번역 가이드

  • 여기에서 확인 할 수 있습니다.

Pull Request를 작성한 항목

  • 여기에서 확인할 수 있습니다.
  • 활동 결과 두 개의 Pull Request가 받아들여졌습니다.

2019-1-oss-l3's People

Contributors

dropfl avatar q-san-g avatar rotmdwo avatar snowdolf99 avatar

Watchers

 avatar  avatar  avatar  avatar

2019-1-oss-l3's Issues

Can't feedback learning #1577

원 리포지트리에 있는 이슈임.
학습을 시켜도 답변은 그대로라는 내용.
단순히 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?

generating duplicate in export data

원 리포지트리 이슈에서 가져옴

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 수정 및 글 작성

활동 내용 및 프로젝트 소개가 아직 미흡합니다.

자신이 활동한 내용과, 지금까지 쓴 글을 정리하여
홈페이지에 글을 작성해 주시면 감사하겠습니다

답변을 위키피디아에서 찾아오도록 하기

원 레포지트리의 1742번 이슈를 보고 재밌어보여 가져왔습니다.

빠르게 개발하면 내일 중으로 완성할 수 있을 것 같습니다.
(함수 한두개만 작성하면 되고 위키피디아에는 API가 존재함)

혹시 참여하고 싶으신 분은 토요일 11시까지 코멘트 남겨주세요

static page footer 부분 정리

필요 없는 부분은 지워주시길 부탁드립니다.
또한 Main Page에 링크가 잘 못 걸려 있는 상태입니다. (저희가 이루어 나가고 있는 공간입니다. 아래 버튼)
Post 화면으로 링크가 걸려있는데 팀 레포지트리 주소로 바꿔주시면 감사하겠니다.

README 작성

gh-pages에 있는 글들을 정리하여 README.md에 나타내 주실 분이 필요합니다.

Wiki 작성

(이슈)[https://github.com//issues/2]의 연장선입니다.
Wiki에 기여 목록 + 프로젝트 소개 순으로 정리가 필요합니다
각자 자기가 기여한 부분을 정리합시다

parsing.datetime_parsing 에러

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가 잘못 작성된 것으로 추정됨

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.