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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e705c18de178e77f72953be997851fb3fc455c4a8832975813db2fdc0d2d70f |
|
MD5 | 02581e9e5a2692efacb3e16c1f59f774 |
|
BLAKE2b-256 | d3f17c1a9bd94aa40d5350e69745c221ecc4e118afe95e5755fb358b887487c9 |
Close
Hashes for westac_parlaclarin_pipeline-2021.9.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf6af39bb975de932ada6f963dd3faa81bd3bc9b79e413b5c54233005b9bc5c |
|
MD5 | 61dc675c7e52af9999a32b250850ad1f |
|
BLAKE2b-256 | 8aaa1c2723ad5f637cbce795a29553188246a02b870041494f88326be15422a8 |