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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
bob3bob3
July 09, 2025
Business
3
790
RとLLMで自然言語処理
R言語とLLMを使って、アンケートの自由回答などの分析に活用する話。
bob3bob3
July 09, 2025
Tweet
Share
More Decks by bob3bob3
See All by bob3bob3
RでPSM分析
bob3bob3
1
400
Rでコンジョイント分析 2024年版
bob3bob3
0
2.1k
『改訂新版前処理大全』の話と Apache Parquet の話 #TokyoR
bob3bob3
0
1.3k
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
620
『データ可視化学入門』をPythonからRに翻訳した話(増強版)
bob3bob3
0
560
『データ可視化学入門』を PythonからRに翻訳した話
bob3bob3
1
630
qeMLパッケージの紹介
bob3bob3
0
2.3k
「国と音楽」 ~spotifyrを用いて~ #muana
bob3bob3
2
620
パーマーステーションのペンギンたち#3 探索的データ分析(EDA)編
bob3bob3
1
800
Other Decks in Business
See All in Business
2026.1_中途採用資料.pdf
superstudio
PRO
3
96k
MEEM_Company_Deck202512.pdf
info_meem
0
3.3k
GMO Flatt Security 会社紹介資料
flatt_security
0
26k
RDRAで価値を可視化する
kanzaki
2
340
【琉球ウェルネス】ウェルネスオフサイト:サービス概要資料
ryukyuwellness
0
180
giftee_Company introduction Febrary 2026
recruit_giftee
1
180
全社員が使える環境を整える! n8n Enterprise導入と浸透施策の実践
enpipi
0
870
HA-LU Inc.|カンパニーデック - 会社資料
halu_japan
1
750
プレックス キャリアアドバイザー職向け会社紹介資料
plex
0
230
「要はバランス」を見極める - ADR実践で目指す技術的卓越への道 / It Depends: Practicing ADRs Toward Technical Excellence
ewa
0
1.8k
(8枚)営業プロセス、パイプライン、予材管理、カスタマージャーニーの基本
nyattx
PRO
0
190
20260114_知的生産と事業創造でAIを使いこなす全技法_スライド
itarutomy
1
440
Featured
See All Featured
Skip the Path - Find Your Career Trail
mkilby
0
52
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Designing Powerful Visuals for Engaging Learning
tmiket
0
210
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
450
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
110
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
54
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Everyday Curiosity
cassininazir
0
130
エンジニアに許された特別な時間の終わり
watany
106
230k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
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!