Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
RとLLMで自然言語処理
Search
bob3bob3
July 09, 2025
Business
3
680
RとLLMで自然言語処理
R言語とLLMを使って、アンケートの自由回答などの分析に活用する話。
bob3bob3
July 09, 2025
Tweet
Share
More Decks by bob3bob3
See All by bob3bob3
RでPSM分析
bob3bob3
1
310
Rでコンジョイント分析 2024年版
bob3bob3
0
1.5k
『改訂新版前処理大全』の話と Apache Parquet の話 #TokyoR
bob3bob3
0
1.2k
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
590
『データ可視化学入門』をPythonからRに翻訳した話(増強版)
bob3bob3
0
530
『データ可視化学入門』を PythonからRに翻訳した話
bob3bob3
1
610
qeMLパッケージの紹介
bob3bob3
0
2.2k
「国と音楽」 ~spotifyrを用いて~ #muana
bob3bob3
2
600
パーマーステーションのペンギンたち#3 探索的データ分析(EDA)編
bob3bob3
1
760
Other Decks in Business
See All in Business
パーソルイノベーション_会社案内
pinotalentbranding
1
32k
DevHRに全部賭けろ
nealle
0
130
THxApp project
shotaro0913
0
420
2025年版株式会社オーご紹介資料
ohbame
0
270
【DearOne】Dear Newest Member
hrm
2
12k
(7枚)目標達成する人のモチベーションが高い理由とは?(ハーズバーグの二要因理論から)
nyattx
PRO
0
130
朝日新聞社 ITエンジニア キャリア採用 紹介資料
asahi_cto
0
610
プラスディーアンドシー合同会社 FACTBOOK _ver1.51_20250801
plusdc
PRO
1
220
定義のない仕事 / Undefined Work
nrslib
10
4.6k
No Company - Company Deck 2025
nocompany
1
680
newmo 採用資料 / Join Our Team
newmo
2
140k
15 分で学ぶ Cloud Run のユースケースと代表的なアーキテクチャパターン
googlecloudjapan
3
440
Featured
See All Featured
KATA
mclloyd
32
14k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.6k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Reflections from 52 weeks, 52 projects
jeffersonlam
352
21k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
30
2.9k
Being A Developer After 40
akosma
90
590k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
188
55k
Transcript
R言語とLLMで 自然言語処理 第3回GenAIアナリティクス@東京 2025/07/09 @bob3bob3
LLMの進化についていくのが大変…… • 個人的にLLMが便利だと思うところは「主観的に判断する事柄で、人間がやると時 間がかかる作業」。 ◦ 一方で算数は苦手。 • 自然言語処理にLLMを活用することに可能性を感じている。従来の形態素解析用 の辞書で対応できない部分もLLMなら上手くやってくれそう。
• R言語が好きなので、その枠組みの中でLLMを活用できると嬉しい。 • 今日はR言語でLLMを活用する仕組みの一例をご紹介します。
R言語とLLM • RStudioとGitHub Copilotを連携させてコード補完 • RStudio内でGemini CLIを利用 • LLM連携パッケージの一部 ◦
ellmer: 各種LLMとR言語を連携させる基本パッケージ ◦ gander: 手元のR環境をもとにLLMと対話するパッケージ ◦ ragnar: RAGワークフローを実装するためのパッケージ ◦ vitals: LLMの性能を比較するパッケージ ◦ mall: LLMを自然言語処理に使うパッケージ
ellmer • 各種LLMのAPIと連携 • 対応しているLLM: ◦ Anthropic’s Claude ◦ AWS
Bedrock ◦ Azure OpenAI ◦ DeepSeek ◦ Google Gemini ◦ Groq ◦ Hugging Face ◦ Mistral ◦ Ollama ◦ OpenAI ◦ OpenRouter ◦ perplexity ◦ Snowflake Cortex ◦ VLLM ◦ などなど
ellmer • Rで描画したグラフを読ませる
ellmer • もちろんコードも書ける。
ellmer • 構造化されたデータを返させる。 • 俳句の作者と季語を判定させる例。 ◦ ちなみにいくつか間違えてる。
gander • コード生成のためのパッケージ。 • RStudioのアドインに LLM assistant が追加 される。
• Rの環境(パッケージ、データセット、既存の コードなど)を考慮してくれる。 ↓LLMが書いたコード
mall • LLMを自然言語処理に使うパッケージ。 ◦ リモートLLMを使うには開発版が必要。 • 文章に対して感情分析、要約、分類、要素の 抽出、翻訳などを行える。
↓製品レビューの感情分析結果
mall
mall 対象製品の抽出
Enjoy!