A Python package for querying and analyzing the Infini-gram dataset, which provides n-gram statistics over a massive web corpus. Version 2.6.0 supports Python >=3.11 and offers tools for tokenization, n-gram counting, and corpus insights. Active development, with updates targeting performance improvements.
pip install infini-gramNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize InfiniteGram with an API token and query n-gram counts.
Use 'from infinigram import InfiniteGram' instead.
Set INFINIGRAM_TOKEN environment variable or pass token='your_token' to InfiniteGram.
Check the list of valid models in the official documentation and pass a supported model string.
No dependency data recorded yet.
No resource links recorded.