だっち

薬学部/教員/博士(薬学)/研究室ハック/Python/生成AI

だっち

薬学部/教員/博士(薬学)/研究室ハック/Python/生成AI

最近の記事

動画をダウンロードする

実現したこと講義等の教育活動において、Youtubeなどの動画を使って説明したいことがあります。動画をローカルにダウンロードする様々なオンラインツールがありますが、広告が鬱陶しいのと複数の動画をダウンロードするのがまためんどくさいですね。Pythonで楽にするコードを書きましたので紹介します。 ただし、CCライセンスのものを選択するなど著作権回りは注意が必要です!!!また、授業目的での著作物の利用についても注意が必要なので、必ず確認してからにしてください💦 スクリプトの概

    • Automating Excel Updates from Gmail Quotations (Gmail Version)

      IntroductionPreviously, I wrote an article about an Outlook version of this process. However, due to increasingly stringent authentication security measures, establishing IMAP connections with Outlook has become challenging. Consequently, I

      • Automated Meeting Minutes Generation using Faster-Whisper, Pyannote, and ChatGPT

        IntroductionCreating meeting minutes is a common requirement following most conferences and meetings. This task is often perceived as time-consuming and tedious, especially considering that the resulting documents are rarely read thoroughly

        • 代理店から返信があった納入価をエクセルファイルに書き込む(Gmail version)

          以前、Outlookバージョンを記事にしました。が、Outlookは色々と認証回りのセキュリティが厳しくIMAP接続出来なくなってきました。そこで、Gmailにしたので記事にしたいと思います。 実現したこと以前、研究室のネットワークドライブに用意している発注表からメールで注文や見積を飛ばすPythonスクリプトを紹介しました。 今回は、見積を依頼するメールに対して代理店から納入価の返信が来たら、価格情報などをエクセルファイルに飛ばすPythonスクリプトを紹介します。

        動画をダウンロードする

        • Automating Excel Updates from Gmail Quotations (Gmail Version)

        • Automated Meeting Minutes Generation using Faster-Whisper, Pyannote, and ChatGPT

        • 代理店から返信があった納入価をエクセルファイルに書き込む(Gmail version)

          Translating Japanese Word Documents into English Using Claude's API While Preserving Formatting

          AccomplishmentDuring a recent meeting, the topic of translating Japanese instruction manuals into English arose. As the atmosphere seemed to lean towards a manual translation effort, I decided to introduce a solution I developed using Pytho

          Translating Japanese Word Documents into English Using Claude's API While Preserving Formatting

          Automated Word Document Translation with OpenAI API: Preserving Styles and Formatting

          IntroductionDuring a recent meeting, the topic of translating Japanese instruction manuals into English arose. As the discussion leaned towards manual translation efforts, I proposed an alternative solution utilizing Python's capabilities.

          Automated Word Document Translation with OpenAI API: Preserving Styles and Formatting

          ClaudeのAPIを使って日本語のワード文章をスタイルを保持しながら英訳する

          実現したこととある会議にて。日本語で書いてある説明書を英訳しなきゃねぇみたいな話になった。人力で頑張りましょう見たいな雰囲気が漂って来たので、無敵のPythonでやる仕組みを構築したので紹介します。 このスクリプトは元のワードファイルの形式を取得し、日本語をClaudeのAPIを使って英語にし、形式を保持しながらワードファイルを生成する感じです。 以前、OpenAIのAPIを使う方法を紹介しました。 スクリプトの概要Word文書の翻訳: 入力されたWord文書を読み込み

          ClaudeのAPIを使って日本語のワード文章をスタイルを保持しながら英訳する

          Automating Price Quote Processing: Writing Supplier Prices to Excel

          Japanese version: IntroductionPreviously, I introduced a Python script that sends orders and quote requests via email using an order form stored on our laboratory's network drive. You can find more information about this in my earlier post

          Automating Price Quote Processing: Writing Supplier Prices to Excel

          Streamlining Laboratory Reagent and Consumable Orders

          Japanese version: AchievementsIn the course of laboratory activities, we frequently need to order various reagents and consumables. This process can be quite tedious. To address this issue, I've written a Python script to simplify the proc

          Streamlining Laboratory Reagent and Consumable Orders

          Creating Meeting Minutes with Whisper-Pyannote-ChatGPT

          Japanease version is below. AccomplishmentsIt is common practice to generate minutes after conducting a meeting. This task can be quite burdensome and tedious when done manually, especially considering that these minutes often go unread. T

          Creating Meeting Minutes with Whisper-Pyannote-ChatGPT

          Adding Subtitles to Japanese Videos Using Whisper

          Japanese version is here. 日本語を喋っている動画にWhisperを使って字幕を付ける|だっち (note.com) Achieved GoalI wanted to find a way to effectively provide training to people who don't understand Japanese. So, I decided to add English subtitles to video files of l

          Adding Subtitles to Japanese Videos Using Whisper

          日本語を喋っている動画にWhisperを使って字幕を付ける

          English version is below. 実現したこと日本語が分からない人に色々と講習をうまく出来ないかということで、日本語でやっている講習の動画ファイルに英語字幕をつけたくなりました。 そこで、動画ファイルから日本語の字幕あるいは英語の字幕をつけるPythonコードを紹介します。 このコードはWhisperによる音声認識を用いています。 スクリプトの概要このPythonスクリプトは、動画ファイルに字幕を追加するための総合的なツールです。主に2つの機能を提供

          日本語を喋っている動画にWhisperを使って字幕を付ける

          代理店から返信があった納入価をエクセルファイルに書き込む

          English version: 実現したこと以前、研究室のネットワークドライブに用意している発注表からメールで注文や見積を飛ばすPythonスクリプトを紹介しました。 今回は、見積を依頼するメールに対して代理店から納入価の返信が来たら、価格情報などをエクセルファイルに飛ばすPythonスクリプトを紹介します。 スクリプトの概要メールの取得と解析: IMAPを使用して指定されたメールボックスに接続します。 直近1週間以内の「見積のお願い」という件名のメールを検索しま

          代理店から返信があった納入価をエクセルファイルに書き込む

          研究室の試薬や消耗品の発注を楽にする

          English version: 実現したこと研究室の活動の中で試薬や消耗品など色々と日々、発注しなければなりません。これがまためんどくさいですね。Pythonで楽にするコードを書きましたので紹介します。 まず、研究室ではNASに下記のようなエクセルファイルに必要なものを書いて貰って居ます。これはXLOOKUPを使って製品コードを入れると自動で反映されるようになっています。しかも、安い代理店が自動で選択されます。 ステータスカラムが空欄なら手配するメール、見積なら見積を

          研究室の試薬や消耗品の発注を楽にする

          OpenAIのAPIを使って日本語のワード文章をスタイルを保持しながら英訳する

          実現したこととある会議にて。日本語で書いてある説明書を英訳しなきゃねぇみたいな話になった。人力で頑張りましょう見たいな雰囲気が漂って来たので、無敵のPythonでやる仕組みを構築したので紹介します。 このスクリプトは元のワードファイルの形式を取得し、日本語をOpenAIのAPIを使って英語にし、形式を保持しながらワードファイルを生成する感じです。 スクリプトの概要Word文書の翻訳: 入力されたWord文書を読み込み、内容を翻訳し、新しいWord文書として保存します。

          OpenAIのAPIを使って日本語のワード文章をスタイルを保持しながら英訳する

          Faster-Whisper-Pyannote-ChatGPTで議事録を作成する

          実現したこと会議をすると議事録作成が求められることが一般的だと思います。手動でやるにはナカナカ重いタスクかつめんどくさい(誰も読まないのに)ということかとおもいます。そこで、音声ファイルあるいや動画ファイルから議事録を作成するPythonスクリプトを紹介します。 このスクリプトは、Whisper(音声認識)、Pyannote(話者識別)、ChatGPT(テキスト生成)という3つの強力なAIモデルを使用しています。 以前、Whisperを使ったものを記事にしました。 これ

          Faster-Whisper-Pyannote-ChatGPTで議事録を作成する