https://github.com/paithiov909/textvis-recipes
Cookbook to draw KHCoder-like visualizations using R
https://github.com/paithiov909/textvis-recipes
Last synced: 6 months ago
JSON representation
Cookbook to draw KHCoder-like visualizations using R
- Host: GitHub
- URL: https://github.com/paithiov909/textvis-recipes
- Owner: paithiov909
- License: mit
- Created: 2024-02-22T13:45:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-30T01:59:48.000Z (over 1 year ago)
- Last Synced: 2024-07-01T00:22:31.621Z (over 1 year ago)
- Language: Dockerfile
- Homepage: https://paithiov909.github.io/textvis-recipes/
- Size: 14.6 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# textvis-recipes
> RによるKH Coder風の可視化のレシピ集
本文については[CC BY](https://creativecommons.org/licenses/by/4.0/)、掲載されているコードについては[MITライセンス](https://github.com/paithiov909/textvis-recipes/blob/main/LICENSE.md)を適用するものとします。
なんとなく似たような表現をめざしているだけで、KH Coderでおこなわれている処理をRで再実装することをめざすものではありません。
## 開発コンテナについて
手もとでKH Coderの図表を確認するために、開発コンテナ内でKH Coderを動かせるようにしています。
具体的には、[Light-weight Desktop (desktop-lite)](https://github.com/devcontainers/features/tree/main/src/desktop-lite) というDev Container Featuresを使っていて、コンテナ内のデスクトップ環境([Fluxbox](http://fluxbox.org/))に[noVNC](https://novnc.com/)経由で接続できます。
もっとも、簡単な確認用なので、完全には動かないと思います。また、これはIMEがない環境なので、日本語入力ができません。
### 使い方
1. サブモジュールをチェックアウトした後、ターミナルなどが表示されるパネルの「ポート」タブから「転送されたアドレス」(ローカルアドレス)を確認し、ブラウザで開きます
2. noVNCの画面が出るのでパスワードに`khcoder`と入力して接続します
3. 右クリックするとメニューが開くので、「Terminal」を起動します
4. `workspace/khcoder`に移動します(`cd workspace/khcoder`)
5. `perl kh_coder.pl`を実行します
6. VS Codeで`khcoder/config/coder.ini`の一部の行を次のように編集し、再度`perl kh_coder.pl`を実行します(コンテナをはじめて起動したときのみ)```
mecab_unicode 1
last_method mecab
c_or_j mecab
sql_username root
sql_password khcoder
sql_host host=db
sql_port 3306
```### 参考にしたリポジトリ
- [sinchiba-backyard/NL2E: Natural Language to Embedding with Docker featuring KH Coder](https://github.com/sinchiba-backyard/NL2E)
- [naoigcat/docker-khcoder: Docker Image for KH Coder on Ubuntu](https://github.com/naoigcat/docker-khcoder)