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
560
Rでコンジョイント分析 2024年版
bob3bob3
0
2.9k
『改訂新版前処理大全』の話と Apache Parquet の話 #TokyoR
bob3bob3
0
1.5k
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
670
『データ可視化学入門』をPythonからRに翻訳した話(増強版)
bob3bob3
0
630
『データ可視化学入門』を PythonからRに翻訳した話
bob3bob3
1
690
qeMLパッケージの紹介
bob3bob3
0
3.1k
「国と音楽」 ~spotifyrを用いて~ #muana
bob3bob3
2
700
パーマーステーションのペンギンたち#3 探索的データ分析(EDA)編
bob3bob3
1
910
Other Decks in Business
See All in Business
決めたことより、「なぜ決めたか」を残す
doiko123
0
410
コミュニケーションは受け手が決める〜読まれる職務経歴書の作り方/Communication makes your career
ikuodanaka
8
1.3k
BASE, Inc. Integrated Report 2026
base
PRO
0
140
エムスリーキャリア エンジニア採用資料 / M3C Engineer Guide
m3c
2
120k
ARI_BXデザイン第2事業ドメイン_事業紹介資料
arid2
0
940
株式会社アシスト_会社紹介資料
ashisuto_career
3
200k
AWS BuilderCardsを社内実践して見えたSales職への提案教育/Insights_from_Implementing_AWS_BuilderCards_Internally_Training_for_Sales_Roles_.pdf
masakiokuda
0
170
個人のふりかえりをアップデートした話
pokotyamu
0
140
株式会社KINS 採用ピッチ資料 2026
kinsofficial
1
630
アカウント営業_候補者様向け資料
mayu1001
0
380
Annual Session - Teknik Lobi dan Negosiasi
adeputra13
0
200
Session 5 - Teknik Lobby dan Negosiasi
adeputra13
0
220
Featured
See All Featured
Crafting Experiences
bethany
1
400
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
420
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
Mobile First: as difficult as doing things right
swwweet
225
10k
How GitHub (no longer) Works
holman
316
150k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
460
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
570
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!