博士前期課程 講義科目Master's course · Graduate School of Humanities

デジタルヒューマニティーズ(テクスト分析論)A/BDigital Humanities (Text Analytics) A/BDigital Humanities (Text Analytics) A/Bデジタルヒューマニティーズ(テクスト分析論)A/B

近代日本文学のコーパスを自分の手で作り直し,そのコーパスで文体・語の意味・主題の変化を計量的に記述する授業です。コーパスの設計から XML による符号化,形態素解析,記述統計と文体計量,word2vec・doc2vec・トピックモデルまでを,8 つのステップで進めます。

Students rebuild a corpus of modern Japanese literature themselves and use it to describe, quantitatively, change in style, word meaning and theme. Eight steps lead from corpus design, XML encoding and morphological analysis to descriptive statistics and stylometry, word2vec, doc2vec and topic modelling.

Contents

内容(全 8 ステップ)Eight steps

各ステップは講義と実習からなり,実習は Jupyter のノートブックで行います。「第 1 回」ではなく「Step」と呼ぶのは,1 コマで終わるとは限らず,到達したところから次へ進むためです。

Each step combines a lecture with a practical session in a Jupyter notebook. Steps are not tied to single class meetings: students move on once they have reached each step's goals.

  1. STEP 1

    コーパスとは何か — 設計・代表性・元のコーパスの診断What is a corpus? Design, representativeness and diagnosis

    01_corpus_design
  2. STEP 2

    コーパスの再構築 — 書誌の典拠と XML マークアップRebuilding the corpus: bibliographic sources and XML markup

    02_rebuild_xml
  3. STEP 3

    再構築から KWIC へ — 踊り字の正規化・UniDic による解析・KWIC コンコーダンサFrom rebuilt texts to KWIC: normalisation, UniDic analysis and a concordancer

    03_normalise_tokenise
  4. STEP 4

    記述統計と文体計量 — MFW・Delta・PCA・キーワードDescriptive statistics and stylometry: MFW, Delta, PCA and keywords

    04_descriptive_stylometry
  5. STEP 5

    word2vec の原理 — 分布仮説から word embedding へHow word2vec works: from the distributional hypothesis to word embeddings

    05_word2vec_basics
  6. STEP 6

    通時的 word2vec — 時代スライスと Procrustes アラインメントDiachronic word2vec: time slices and Procrustes alignment

    06_diachronic_word2vec
  7. STEP 7

    doc2vec — 文書ベクトル表現と交絡の分離doc2vec: document vectors and disentangling confounds

    07_doc2vec
  8. STEP 8

    トピックモデル(MALLET) — 主題の多様化と総合Topic modelling with MALLET: thematic diversification and synthesis

    08_topic_modelling
Materials

教材Materials

教材はすべて GitHub のリポジトリにあります。受講生は自分のマシンにリポジトリを複製(clone)して使います。連絡と課題の提出は,受講登録者だけが参加する授業用の Zulip で行います。

All materials are in the GitHub repository, which students clone to their own machines. Announcements and assignments are handled on the course's Zulip channel, open to enrolled students only.

Tools

授業で作る道具Tools built in the course

Step 3 で作る KWIC コンコーダンサと Step 8 で作るトピックビューアを,ブラウザで使える形で公開しています。コーパスそのものについては JLit Corpus 2026 のページを見てください。

The concordancer from Step 3 and the topic viewer from Step 8 can be used in the browser. For the corpus itself, see the JLit Corpus 2026 page.

STEP 3

JLit KWIC コンコーダンサJLit KWIC concordancer

122 作品・9,255,339 形態素から用例と共起語を引けます。

Concordance lines and collocates from 122 works (9,255,339 tokens).

STEP 8

JLit トピックビューアJLit topic viewer

トピックの上位キーワードと作品,時代区分による変化,ネットワークグラフ。

Top keywords and works, change across periods, and network graphs.