Low Resource Context Relation Sampler for contexts with relations for fact-checking and fine-tuning your LLM models, powered by AREkit
Project description
arekit-ss 0.23.1
arekit-ss
[AREkit double "s"] -- is an extension for instant object-pair context sampling from
AREkit
collection of
datasources.
For custom text sampling, please follow the ARElight project.
Mind the case (issue #18): switching to another language may changed amount of extracted data due to
terms_per_context
parameter that crops context with fixed amount of words.
Installation
Install dependencies:
pip install git+https://github.com/nicolay-r/arekit-ss.git@0.23.1
Download AREkit related data, from which sources
are required:
python -m arekit.download_data
Usage
Example of composing prompts:
python -m arekit_ss.sample --writer csv --source rusentrel --sampler prompt \
--prompt "For text: '{text}', the attitude between '{s_val}' and '{t_val}' is: '{label_val}'" \
--dest_lang en --docs_limit 1 --text_parser lm --output_dir 'out_rusentrel_prompt'
samplers
nn
-- CNN/LSTM architecture related, including frames annotation from RuAttitudes.bert
-- BERT-based, single-input sequence.prompt
-- prompt-based sampler forChatGPT
and the related conversational systems [prompt engeneering guide]
Writers
Powered by
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
arekit_ss-0.23.1.tar.gz
(46.9 kB
view hashes)
Built Distribution
arekit_ss-0.23.1-py3-none-any.whl
(48.7 kB
view hashes)
Close
Hashes for arekit_ss-0.23.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e3e199a6dd68ce4b0d95d2f62b62d6fd532c15638a752df8539de302dbec3ed |
|
MD5 | f89f8920f05b794519465b0d4e221dfd |
|
BLAKE2b-256 | a003e3eb2856f29b5bad102b2805532d42bc440446e0a4c88394c3d022af27e0 |