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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2757f426986e676a9c364190ad8705594188a0bb80d0a80dd27c267f00e69a5c |
|
MD5 | 03fc05edac45cb8b2abf292f71ac8d34 |
|
BLAKE2b-256 | 035a9a0800775c63ea380a23a739a8b6089c904012aa9bb1c072a5423482d2dd |
Close
Hashes for westac_parlaclarin_pipeline-2021.9.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebeb6da481090ac87fb7e87046751322705f95002cf5609b8041a8b5567e1666 |
|
MD5 | a617cfb09c2947fa8680b1bb2b996b64 |
|
BLAKE2b-256 | 1a8f1e23da381a8801a06defa4b2f63208fc1d4264acd5062ce9744d22ffab22 |