Skip to content

Instantly share code, notes, and snippets.

Avatar

tomo-makes tomo-makes

View GitHub Profile
@tomo-makes
tomo-makes / -kirikei-autogluon.ipynb
Last active Dec 14, 2019
@kirikei記事にそって、AutoGluon使ってみた
View -kirikei-autogluon.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomo-makes
tomo-makes / spleeter-multi-source-separation-demo.ipynb
Last active Dec 29, 2019
Spleeter multi-source separation demo + transcription trials.ipynb
View spleeter-multi-source-separation-demo.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomo-makes
tomo-makes / jupyter_translate.md
Last active Sep 30, 2021
Translating Jupyter notebook using Google Translate
View jupyter_translate.md

Overview

  • Lots of jupyter notebooks for machine learning tutorials are available in English
  • Draft machine translations of markdown cells help self motivated learners, who are non-native English speakers, to reach more resources

Usage

generate translated notebook

$ ./jupyter_translate.py en ja source.ipynb translated.ipynb
@tomo-makes
tomo-makes / review2md.sh
Created Dec 31, 2018
フォルダ内のRe:VIEWファイルを全てmarkdown形式に変換する
View review2md.sh
#! /bin/bash
find . -name '*.re' -print0 | while read -r -d '' file; do review-compile --target markdown $file > ${file%%.re}.md; done
@tomo-makes
tomo-makes / 20171217-docx-to-markdown-with-pandoc.md
Last active Sep 18, 2021
Wordファイル(.docx)をMarkdownへ変換する
View 20171217-docx-to-markdown-with-pandoc.md
$ pandoc -s <input>.docx --wrap=none --reference-links --extract-media=media -t gfm --filter ./despan.py -o <output>.md

いろいろと試した挙句、下記の観点でこれがベスト。

  • --wrap=none 勝手にwrapさせたくない(defaultではwrapしてしまう)
  • --reference-links
  • --extract-media=media docxに埋め込まれたpngなどを抽出できる
  • -t gfm github形式のmarkdownで出力したい(tableがpandoc defaultのmarkdownは他の形式になってしまう)