金子邦彦研究室3次元,地図Keras の体験,応用例 ▶ Document2Vec を使ってみる

Document2Vec を使ってみる

Finding document vectors from pre-trained word2vec word vectors

先人に感謝.

前準備

Python のインストール(Windows 上)

Windows での Python 3.10,関連パッケージ,Python 開発環境のインストール: 別ページ »で説明

サイト内の関連ページ

Python のまとめ: 別ページ »にまとめ

関連する外部ページ

Python の公式ページ: https://www.python.org/

Git のインストール

Git の URL: https://git-scm.com/

Document2Vec のインストール

※ 以下,Windows での手順を示す.Ubuntu でも同様の手順になる.

  1. cemoody/Document2Vec の Web ページを開く.確認する.

    https://github.com/cemoody/Document2Vec

  2. Windows では,コマンドプロンプトを実行.
  3. ディレクトリ(フォルダ)を空にする操作

    cd c:\pytools
    rmdir /s /q Document2Vec
    
  4. ダウンロード(git を使用)

    git clone https://github.com/cemoody/Document2Vec
    
  5. さきほどダウンロードした Document2Vec をインストール
    cd c:\pytools
    cd Document2Vec
    python setup.py install 
    

    [image]
  6. インストールが成功したかを確認したい.

    新しくコマンドプロンプトを開き, 次のコマンドを順に実行.エラーメッセージが出なければ成功.

    ipython
    import document2vec
    exit()
    

    [image]