prelims CLI - Front matter post-processor CLI
Project description
prelims-cli
CLI for prelims.
Install
Run:
pip install prelims-cli
If you need Japanese tokenization, run:
pip install prelims-cli[ja]
Usage
Assuming the following folder directory:
- content
| ├── post
| └── blog
└─ scripts
└ config
└ myconfig.yaml
where, post and blog are pages, and scripts is the place to put scripts.
Here is the example of configuration:
handlers:
- target_path: "content/blog"
ignore_files:
- _index.md
processors:
- type: recommender
permalink_base: "/blog"
tfidf_options:
stop_words: english
max_df: 0.95
min_df: 2
tokenizer: null
- target_path: "content/post"
ignore_files:
- _index.md
processors:
- type: recommender
permalink_base: "/post"
tfidf_options:
max_df: 0.95
min_df: 2
tokenizer:
lang: ja
type: sudachi
mode: C
dict: full
$ prelims-cli --config-dir ./scripts/config --config-name myconfig hydra.run.dir=. hydra.output_subdir=null hydra/job_logging=disabled hydra/hydra_logging=disabled
target: /user/chezo/src/chezo.uno/content/blog
target: /users/chezo/src/chezo.uno/content/post
Then your articles' front matter were updated.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prelims-cli-0.0.3.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file prelims-cli-0.0.3.tar.gz
.
File metadata
- Download URL: prelims-cli-0.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82c901c34cb6ed04774277738b58438ae23af71de5084d6fcc4cab64943a5895 |
|
MD5 | 1ef43442db5779731a07c771f8a2c3e3 |
|
BLAKE2b-256 | c63092647cc82c96ecbdc86dcdaa837128ad40a854dd5b4779815db46ea9f05e |
File details
Details for the file prelims_cli-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: prelims_cli-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14c523e87a0be4770acd4a48c102289e94b9ec53f5ad50415ae770c0410e87d9 |
|
MD5 | 321d44e9b1f2a3ee2972ba6f24da2a69 |
|
BLAKE2b-256 | 292d1d642bcfe2ca51ef62cfe1d1accf652d12bd17319aec641639bc4054a111 |