Skip to main content

RiverText

RiverTex is an open-source library for modeling and training different incremental word vector architectures proposed by the state-of-the-art.

It seeks to standardize many existing incremental word vector algorithms into a unified framework to provide a standardized interface and facilitate the development of new methods.

RiverTex provides two training paradigms:

  • learn_one, which trains one instance at a time;

  • and learn_many, which trains a mini-batch of instances at a time.

This allows for more efficient training of text representation models with text data streams.

RiverText also provides an interface similar to the river package, making it easy for developers to use the library to quickly and easily train text representation models.

The official documentation can be found at this link.

Installation

Requirements

These package will be installed along with the package, in case these have not already been installed:

  1. nltk
  2. numpy
  3. river
  4. scikit_learn
  5. scipy
  6. torch
  7. tqdm

Contributing

Development Requirements

Testing

All unit tests are in the rivertext/tests folder. It uses pytest as a framework to run them.

To run the test, execute:

pytest tests

To check the coverage, run:

pytest tests --cov-report xml:cov.xml --cov rivertext

And then:

coverage report -m

Build the documentation

The documentation is created using mkdocs and mkdocs-material. It can be found in the docs folder at the root of the project. First, you need to install:

pip install mkdocs
pip install "mkdocstrings[python]"
pip install mkdocs-material

Then, to compile the documentation, run:

mkdocs build
mkdocs serve

Changelog

References

@article{montiel2021river,
  title={River: machine learning for streaming data in Python},
  author={Montiel, Jacob and Halford, Max and Mastelini, Saulo Martiello and Bolmier, Geoffrey and Sourty,
    Raphael and Vaysse, Robin and Zouitine, Adil and Gomes, Heitor Murilo and Read, Jesse and Abdessalem,
    Talel and others},
  year={2021}
}

@article{bravo2022incremental,
  title={Incremental Word Vectors for Time-Evolving Sentiment Lexicon Induction},
  author={Bravo-Marquez, Felipe and Khanchandani, Arun and Pfahringer, Bernhard},
  journal={Cognitive Computation},
  volume={14},
  number={1},
  pages={425--441},
  year={2022},
  publisher={Springer}
}

@article{kaji2017incremental,
  title={Incremental skip-gram model with negative sampling},
  author={Kaji, Nobuhiro and Kobayashi, Hayato},
  journal={arXiv preprint arXiv:1704.03956},
  year={2017}
}

Team

Contact

Please write to gabrieliturrab at ug.chile.cl for inquiries about the software. You are also welcome to do a pull request or publish an issue in the RiverText repository on Github.

Metadata

Release files for rivertext 0.0.2

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

Source distribution (sdist)

Source distribution for rivertext 0.0.2
File Size Uploaded
rivertext-0.0.2.tar.gz 20.8 kB Details

Built distribution (wheel)

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

Total release size: 46.9 kB

Release files / rivertext-0.0.2.tar.gz

Download URL rivertext-0.0.2.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
022936c8fb51708898af67892c27e21881ba1ad2f9518ed023c674b5841821dd
BLAKE2b-256 checksum
How to use checksums
92f5e8cf5c958db390059e02fc46d5c404caa430486e7e9d3ccec9a0954917d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release files / rivertext-0.0.2-py3-none-any.whl

Download URL rivertext-0.0.2-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a7636a95e70a982f6848333033de0551239463dd53b77f11fc3066bd43fc980
BLAKE2b-256 checksum
How to use checksums
360566c4896f62728a49820ad909132c776a7b68da382ee8ce418e5e3b203b1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

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