Pipeline that transforms Parla-Clarin XML files
Project description
Parla-Clarin Workflow
This package implements Stanza part-of-speech annotation of ParlaClarin XML files.
Prerequisites
- Git
- Python 3.8.5^
- GNU make
- Poetry
Install
Clone this repository:
- cd a-project-directory-of-your-choosing
- git clone git@github.com:welfare-state-analytics/westac_parlaclarin_pipeline
- cd westac_parlaclarin_pipeline
Or install python package:
- poetry init --python 3.8.5
- poetry install westac_parlaclarin_pipeline
- poetry install westac_parlaclarin_pipeline
Run annotation
Update repository:
make update-repository
make update-repository-timestamps
Update all (changed) annotations:
make annotate
Update a single year (and set cpu count):
make annotate YEAR=1960 CPU_COUNT=1
Configuration
work_folders: !work_folders &work_folders
data_folder: /data/riksdagen_corpus_data
parla_clarin: !parla_clarin &parla_clarin
repository_folder: /data/riksdagen_corpus_data/riksdagen-corpus
repository_url: https://github.com/welfare-state-analytics/riksdagen-corpus.git
repository_branch: dev
folder: /data/riksdagen_corpus_data/riksdagen-corpus/corpus
extract_speeches: !extract_speeches &extract_speeches
folder: /data/riksdagen_corpus_data/riksdagen-corpus-exports/speech_xml
template: speeches.cdata.xml
extension: xml
word_frequency: !word_frequency &word_frequency
<<: *work_folders
filename: riksdagen-corpus-term-frequencies.pkl
dehyphen: !dehyphen &dehyphen
<<: *work_folders
whitelist_filename: dehyphen_whitelist.txt.gz
whitelist_log_filename: dehyphen_whitelist_log.pkl
unresolved_filename: dehyphen_unresolved.txt.gz
config: !config
work_folders: *work_folders
parla_clarin: *parla_clarin
extract_speeches: *extract_speeches
word_frequency: *word_frequency
dehyphen: *dehyphen
annotated_folder: /data/riksdagen_corpus_data/annotated
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for westac-parlaclarin-pipeline-2021.9.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd31c94b6b984f2341e0a2444712c318043df9e311c530c8454694fd3137371f |
|
MD5 | 4c3c789559221813b0b2ceb4dad312cf |
|
BLAKE2b-256 | 81f1c7c6b60a07d5b02daf56c5f954ba647b78eef600dc9d0e9c65df0018644c |
Close
Hashes for westac_parlaclarin_pipeline-2021.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a04f86413d25776ee8a31abe0c215c391cb9fbca236012350f472afe5b9b1a46 |
|
MD5 | 794846a85247d79be0949c72b1f238a1 |
|
BLAKE2b-256 | bc64914fed274721175a80031013802667f31615c3d90a321fe4396d09f37f01 |