Lyrical subject¶
poetry_analysis.lyrical_subject
¶
add_metadata(poem, lyric_features)
¶
Add metadata from the poem to the annotations.
Source code in src/poetry_analysis/lyrical_subject.py
72 73 74 75 76 77 | |
detect_lyrical_subject(poem_text)
¶
Map the presence of certain words denoting a lyrical subject in a poem to categorical labels.
Source code in src/poetry_analysis/lyrical_subject.py
52 53 54 55 56 57 58 59 60 | |
process_poems(poems, text_field='textV3')
¶
Annotate whether or not the lyrical subject is a feature in a list of poems.
Source code in src/poetry_analysis/lyrical_subject.py
63 64 65 66 67 68 69 | |