Relationship Between Poetic Meter and Meaning in Accentual-Syllabic Verse (data and replication code)
收藏资源简介:
<strong>main.py</strong>: script to train both lda and word2vec models <strong>main.ipynb</strong>: Jupyter Notebook containing all the analyses reported in the paper <strong>pos.ipynb</strong>: clustering based on frequencies of parts-of-speech <strong>corpora</strong>: contains original data for Czech, English, and Dutch poetry in JSON (proprietary German and Russian not included) <pre><code>{ <= Each item in the following lists corresponds to particular poem and holds: 'words': [] <= list of lemmata found in the poem 'pos_tags': [] <= their POS-tags (Positional Morphological Tags for Czech, MyStem for Russian, TreeTagger tagsets for other corpora) 'meters': [[]] <= list of meters found in poem 'years': [] <= year when poem published (year when author born in case of English) 'n_words': [] <= number of words 'n_lines': [] <= number of lines 'authors': [] <= author of the poem 'titles': [] <= title of the poem 'schemes': [] <= line-ending schemes } </code></pre> <strong>dicts</strong>: contains Gensim dictionary files for all 5 corpora <strong>fig</strong>: contains all resulting figures <strong>json</strong> <strong>> metadata:</strong> contains all metadata on poems in particular corpora <pre><code>{ <= Each item in the following lists corresponds to particular poem and holds: 'meters': [[]] <= list of meters found in poem 'years': [] <= year when poem published (year when author born in case of English) 'n_words': [] <= number of words 'n_lines': [] <= number of lines 'authors': [] <= author of the poem 'titles': [] <= title of the poem } </code></pre> <strong>json > topics:</strong> contains topic probabilities in particular poems <pre><code>[ <= each item corresponds to particular poem and comprise 100-dimensional dict { 'topic title': its probability in poem } ] </code></pre> <strong>json > pos:</strong> contains POS relative frequencies in particular poems <pre><code>[ <= each item corresponds to particular poem { 'POS': its frequency } ] </code></pre> <strong>json > w2v:</strong> contains mapping of lemmata and their neighbours in word2vec models <strong>models</strong>: contains pretrained lda and word2vec models (Gensim)



