https://github.com/eniehack/mechayabashi
markov-chain bot that learns someone's posts in social networks.
https://github.com/eniehack/mechayabashi
Last synced: 5 months ago
JSON representation
markov-chain bot that learns someone's posts in social networks.
- Host: GitHub
- URL: https://github.com/eniehack/mechayabashi
- Owner: eniehack
- Created: 2024-01-27T17:37:30.000Z (over 2 years ago)
- Default Branch: trunk
- Last Pushed: 2024-10-03T16:23:42.000Z (over 1 year ago)
- Last Synced: 2025-02-22T09:46:14.075Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mechayabashi
TwitterなどのSNSの投稿からマルコフ連鎖を用いて文章を生成するBot
## features
- 様々なinput
- Twitter Archive(`.js`)
- nitter RSS
- 様々なoutput
- Discord bot
- Misskey bot
- CLI app
- W.I.P.: feedback from human reaction
## dependency
- poetry
- python
## install
1. `git clone & cd`
2. `poetry install`
3. `poetry run src/importer/*.py`: ベースとなるデータ(`.csv`)の作成
- misskeyから取得する(W.I.P.): `poetry run src/importer/misskey.py`
- nitterから取得する: `poetry run src/importer/nitter.py`
- Twitterのアーカイブデータから取得する: `poetry run src/importer/twitter_archive.py`
4. `poetry run src/ngram.py`: `.csv`データからngramを作成しSQLiteデータベースを作成
5. 文章を作成
- discord botの場合: `poetry run src/discord.py`
- misskey botの場合: `poetry run src/misskey.py`
- CLIの場合: `poetry run src/make_sentence.py`