プリンキピア

第9章リカレントニューラルネットワーク

9.2.7. Exercises9.2.7 練習問題

  1. In the experiment of this section, tokenize text into words and vary the min_freq argument value of the Vocab instance. Qualitatively characterize how changes in min_freq impact the size of the resulting vocabulary.
    英語のヒント
    この節の実験で、テキストを単語にトークン化し、Vocabのインスタンスの引数min_freqの値を変えよ。min_freqの変化が、得られる語彙の大きさにどう影響するかを定性的に述べよ。
  2. Estimate the exponent of Zipfian distribution for unigrams, bigrams, and trigrams in this corpus.
    英語のヒント
    このコーパスのユニグラム、バイグラム、トライグラムについて、ジップ分布の指数を推定せよ。
  3. Find some other sources of data (download a standard machine learning dataset, pick another public domain book, scrape a website, etc). For each, tokenize the data at both the word and character levels. How do the vocabulary sizes compare with The Time Machine corpus at equivalent values of min_freq. Estimate the exponent of the Zipfian distribution corresponding to the unigram and bigram distributions for these corpora. How do they compare with the values that you observed for The Time Machine corpus?
    英語のヒント
    ほかのデータ源を見つけよ(標準的な機械学習のデータセットをダウンロードする、別のパブリックドメインの本を選ぶ、ウェブサイトをスクレイピングする、など)。それぞれについて、データを単語と文字の両方の水準でトークン化せよ。min_freqの値が同じとき、語彙の大きさはタイム・マシンのコーパスと比べてどうか。これらのコーパスのユニグラムとバイグラムの分布に対応するジップ分布の指数を推定せよ。それらは、タイム・マシンのコーパスで観察した値と比べてどうか。