semvec/pypi-packages huggingface dataset:
statLM 0.0.2
Language models to predict words
License: MIT
Requires Python: >=3.7

******
statLM
******

statLM (Statistical Language Models) is a library for classical as well as modern language models.

Example Usage
#############

Train a language model and make predictions based on queries i.e. test data.

.. code-block:: python

    corpus = ["let us see were this project leads us",
                "we are having great fun so far",
                "we are actively developing",
                "it is getting tougher but it is still fun",
                "this project teaches us how to construct test cases"] 

    sb = StupidBackoff(n_max=3, alpha=0.4)
    # fit model on corpus
    sb.fit( corpus )
    # make predictions
    queries = ["let us see were that project", "how many options"]
    sb.predict(queries)


In Progress
###########

* more language models
* improve efficiency of ngram comparisons
* construct CD/CI tests via github action
* add type checking

Copyright
#########

Copyright (C) 2020 statLM Raphael Redmer

For license information, see LICENSE.txt.
viffIO 0.0.1
Read and write old Khoros/VisiQuest viff and xv formats
License: MIT
Keywords: viff xv khoros visiquest

# viff-xv
A viff or xv file is from Khoros/VisiQuest packages which has a header of 1024 bytes and is BSQ formated raw raster file. The file is parsed based upon the C struct definition provided in the source section.

## Requirements
* Python 3.7
* numpy

## Features and I/O
### Read
```
data = viff.read(filename: str)
```
### Write
```
viff.write(filename: str, data: np.array)
```
### Variable Description
* filenames (str) - Path to the input file to read
* data (np.array) - data to save formated as np.array with dimensions [NumberOfImages,NumberOfBands,NumberOfColumns,NumberOfRows]

## Code Example
### Read and Display File
Read and display the first image and band of the read in file.
```
import viff
import matplotlib.pyplot as plt
import argparse

parser = argparse.ArgumentParser(description='viff reader example')
parser.add_argument('--file', type=str, help='filename (default=None)')
parser.add_argument('--save', action='store_true', help='save a copy as testing.xv')
args = parser.parse_args()

""" Read a file """
data = viff.read(args.file)

plt.imshow(data[0,0,:,:])
plt.show()
```
### Write a new file
```
if args.save:
  """ Write a new file """
  viff.write('testing.xv',data)
```
### Command line usage
```
$ python viff.py --file <filename> --save
```
This generates a plot and a new file 'testing.xv'.

## Sources:
### File Format
http://www.fileformat.info/format/viff/egff.htm