Skip to main content

CLiQS Python module

CLiQS Python module provides implementation of multilingual crisis social media summarization model.

Please, if you use CLiQS for your research consider citing:

Fedor Vitiugin, Carlos Castillo: Cross-Lingual Query-Based Summarization of Crisis-Related Social Media: An Abstractive Approach Using Transformers. In ACM Hypertext 2022. ACM Press. https://doi.org/10.1145/3511095.3531279

Installation

  1. Install the module via pip:
pip install cliqs
  1. Download LASER and CLiQS models:
python -m laserembeddings download-models
python -m cliqs download-models
  1. Before running the script, please check installation of SpaCy models for language that you plan to use.
python -m spacy download fr_core_news_sm # for French

Test use

Download test data 'example.csv' file and put in the current directory.

Example of use:

import pandas as pd
from cliqs import CliqSum

sum = CliqSum()

tweets = pd.read_csv('example.csv')
summary = sum.summarize(tweets, 'Damage', 'fr')

print(summary)

cyclone seroja a touché terre en Australie, entre Kalbarri et northampton, l'oeil est encore bien dessiné mais devrait rapidement se déstructurer. cyclone seroja devrait prendre le dessus et atteindre le stade de cyclone 65kt ce WE avant de toucher terre sur côte ouest Australie dimanche soir.

  • example.csv —- data file with three columns: id, text, en_text (translation of texts to English).
  • Damage -- information category. Current version supports 6 categories: Casualties, Damage, Danger, Sensor, Service aand Weather.
  • fr -- language of texts in file.

Resources

Code for training custom models — CLiQS-CM GitHub repository

Dataset for text classification — tweets dataset

Dataset for summary evaluation — summaries dataset

Metadata

Release files for cliqs 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cliqs 1.0.0
File Size Uploaded Provenance Actions
cliqs-1.0.0.tar.gz 12.2 kB Without provenance Details for cliqs-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cliqs 1.0.0
File Interpreter ABI Platform Actions
cliqs-1.0.0-py3-none-any.whl Python 3 none any Details for cliqs-1.0.0-py3-none-any.whl

Total release size: 24.0 kB

Release files / cliqs-1.0.0.tar.gz

Download URL cliqs-1.0.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d4e15f424e5b7850f2f82623ee7bbb5856b4b6ac0d2877c8a3cea43e39951754
BLAKE2b-256 checksum
How to use checksums
46ae6cbcfa8de7664897490824674e7699b62fc3e0608a1c3d1919fb99ef20c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release files / cliqs-1.0.0-py3-none-any.whl

Download URL cliqs-1.0.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ae42c8a2050ad2bf8269603bdde0b93cbc254563b6e900b1b33fc871f61ecba
BLAKE2b-256 checksum
How to use checksums
569a78422e53d50d644bea4d46eec583afeaad205029449680bbbfcb3ab4417a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Security for cliqs 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page