Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
RとLLMで自然言語処理
Search
bob3bob3
July 09, 2025
Business
1.1k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RとLLMで自然言語処理
R言語とLLMを使って、アンケートの自由回答などの分析に活用する話。
bob3bob3
July 09, 2025
More Decks by bob3bob3
See All by bob3bob3
RでPSM分析
bob3bob3
1
490
Rでコンジョイント分析 2024年版
bob3bob3
0
2.8k
『改訂新版前処理大全』の話と Apache Parquet の話 #TokyoR
bob3bob3
0
1.5k
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
670
『データ可視化学入門』をPythonからRに翻訳した話(増強版)
bob3bob3
0
620
『データ可視化学入門』を PythonからRに翻訳した話
bob3bob3
1
680
qeMLパッケージの紹介
bob3bob3
0
3k
「国と音楽」 ~spotifyrを用いて~ #muana
bob3bob3
2
680
パーマーステーションのペンギンたち#3 探索的データ分析(EDA)編
bob3bob3
1
890
Other Decks in Business
See All in Business
採用広報資料_2026年9月.pdf
gw_recruit
0
1.2k
SimpleForm 会社紹介資料
simpleform
2
60k
会社説明資料(新卒採用)
witsjp
0
130
GREAT WORKS Culture Deck
greatworks
0
140
会社説明資料
xinghr
0
3.2k
5 quotes that sum up recent trading in the travel sector - August 2026
marketingttc
0
140
50代で初転職した話
yda
15
23k
フルカイテン株式会社 採用資料
fullkaiten
0
120k
アジャイル実践者のための堅牢でスケーラブルな働き方を構築する技術/Self-Management for Agile Practitioner
ikuodanaka
1
210
TECO Design 会社紹介資料
tecodesign
0
310
データを使う側視点のデータ整備 / 第2回 データ整備を前向きに考える会
shinu
PRO
0
450
コーポレートストーリー(新規投資家様向け会社説明資料)
gatechnologies
2
21k
Featured
See All Featured
A better future with KSS
kneath
240
18k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
700
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Fireside Chat
paigeccino
43
4k
The Spectacular Lies of Maps
axbom
PRO
1
1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
530
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.1k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
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!