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
850
3
Share
RとLLMで自然言語処理
R言語とLLMを使って、アンケートの自由回答などの分析に活用する話。
bob3bob3
July 09, 2025
More Decks by bob3bob3
See All by bob3bob3
RでPSM分析
bob3bob3
1
420
Rでコンジョイント分析 2024年版
bob3bob3
0
2.4k
『改訂新版前処理大全』の話と Apache Parquet の話 #TokyoR
bob3bob3
0
1.4k
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
640
『データ可視化学入門』をPythonからRに翻訳した話(増強版)
bob3bob3
0
580
『データ可視化学入門』を PythonからRに翻訳した話
bob3bob3
1
640
qeMLパッケージの紹介
bob3bob3
0
2.4k
「国と音楽」 ~spotifyrを用いて~ #muana
bob3bob3
2
640
パーマーステーションのペンギンたち#3 探索的データ分析(EDA)編
bob3bob3
1
830
Other Decks in Business
See All in Business
【APTO】Company Deck(2026年4月)
recruit_
0
260
株式会社ハイウェイ_採用候補者様向け会社紹介資料
recruit_hiway
0
120
株式会社アシスト_会社紹介資料
ashisuto_career
3
160k
インキュデータ会社紹介資料
okitsu
3
53k
株式会社リブに興味がある方へ
libinc
2
74k
(41枚)目標管理の全スキル 目標の立て方・課題の設定の仕方・計画の立て方・仕組みの作り方・進捗管理のやり方等すべてを解説
nyattx
PRO
2
1.5k
株式会社オーイズミピュアルズ採用資料2604
purells
0
130
Corporate Story (GA technologies Co., Ltd.)
gatechnologies
0
750
税理士法人マネイジブレーン採用のご案内.pdf
yukawamoee
0
2.5k
合同会社DMM.com ヘルスケア本部 採用ピッチ資料
dmm
0
550
Global Vascular株式会社_会社紹介資料
globalvascular
0
390
Tableau巣鴨会_20260328_LT
hayashi_ds017
0
130
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
760
Product Roadmaps are Hard
iamctodd
PRO
55
12k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
Paper Plane
katiecoart
PRO
1
49k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
The Curse of the Amulet
leimatthew05
1
11k
Prompt Engineering for Job Search
mfonobong
0
250
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
170
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!