Git Product home page Git Product logo

c_chat_chatbot's Introduction

C_Chat_Chatbot

111-2 NLP 期末專題

希洽板主要以討論ACG(動畫、漫畫、遊戲與相關周邊)話題為主體,目前也還是PTT的大板之一,每天文章動輒數百篇,該板也有不少特別的文化,不少PTT流行用語是發源於該板。

目前訓練的效果不太好,可能是因為宅圈的專業術語太多,導致model怎麼學也學不會

image

Requirement

  • ngrok
  • tensorflow
  • linebot
  • numpy
  • jieba
  • re
  • sklearn
  • tqdm

code

  • colab/PTT_crawler : 在colab上爬PTT資料的
  • colab/c_chat_train : 在colab上訓練model
  • PTT_crawler : 爬PTT資料,要哪個版從哪個index在裡面可以調
  • bot.py : 執行bot,再去執行ngrok
  • load_model : 使用pre_train的model
  • single_prediction : 透過model進行prediction

Demo

  • 1.要先執行bot.py
  • 2.在cmd輸入ngrok http 5000,之後會產生一個public url
  • 3.將產生的public url丟去line developer中其中一個設定message API的webhook url,就可以開始用了

image image

Reference

snsd0805/PTT-Chatbot

hsuanchia/PTT-Gossiping-Chatbot

c_chat_chatbot's People

Contributors

doudou030 avatar

Watchers

Kostas Georgiou avatar  avatar

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.