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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561897139515a3417cba76a5a30ebc793ae9338de6f5480122b404bb2e108d6e |
|
MD5 | 8f59bb3a2bfdeeeeb2aa487787d95b32 |
|
BLAKE2b-256 | 2b93a28b95cf9aa171548b5179fce9c9fb2625952dc3e7b9faef50577783e5fd |
Close
Hashes for westac_parlaclarin_pipeline-2021.9.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac67c1f455c984c3a2733f715b35e32650ae70619ae80a85b5844828df7f5d1d |
|
MD5 | ce966ecba50a9860decdfbd634f45f80 |
|
BLAKE2b-256 | 72603632df6a26c960950046b1905187c03eee5675cb6184f98df9de1c1b5b78 |