Skip to main content

Python binding for SFST

Project description

Python bindings for SFST

This is python binding for SFST. The sfst python library can be imported and can be used for analysis and generation as explained in the below examples:

Installation

sfs python library is available at pypi.org. It can be installed as follows:

pip install sfst

Import and initialize

import sfst
# Initialize with the compiled sfst.
sfst.init('path/to/fst.a'))

Initialization is must before doing any operations.

Analysis

import sfst
# Initialize with the compiled sfst.
sfst.init('path/to/fst.a'))
# Analyse a string. results are a list of analysis.
analysis_results = sfst.analyse("easier")
# Returns ['easy<ADJ><comp>'] for example.

Generation

import sfst
# Initialize with the compiled sfst.
sfst.init('path/to/fst.a'))
# Generate a string. results are a list of analysis.
generate_results = sfst.generate("easy<ADJ><comp>")
# Returns ['easier'] for example.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sfst-1.6.0.tar.gz (690.3 kB view hashes)

Uploaded Source

Built Distributions

sfst-1.6.0-cp312-cp312-win_amd64.whl (109.1 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

sfst-1.6.0-cp312-cp312-win32.whl (93.1 kB view hashes)

Uploaded CPython 3.12 Windows x86

sfst-1.6.0-cp312-cp312-musllinux_1_1_x86_64.whl (869.2 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

sfst-1.6.0-cp312-cp312-musllinux_1_1_i686.whl (948.2 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

sfst-1.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (371.0 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

sfst-1.6.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (402.2 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

sfst-1.6.0-cp312-cp312-macosx_11_0_arm64.whl (216.6 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

sfst-1.6.0-cp312-cp312-macosx_10_9_universal2.whl (452.6 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64)

sfst-1.6.0-cp311-cp311-win_amd64.whl (108.6 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

sfst-1.6.0-cp311-cp311-win32.whl (92.3 kB view hashes)

Uploaded CPython 3.11 Windows x86

sfst-1.6.0-cp311-cp311-musllinux_1_1_x86_64.whl (869.7 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

sfst-1.6.0-cp311-cp311-musllinux_1_1_i686.whl (948.0 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

sfst-1.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (371.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

sfst-1.6.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (403.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

sfst-1.6.0-cp311-cp311-macosx_11_0_arm64.whl (218.0 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

sfst-1.6.0-cp311-cp311-macosx_10_9_universal2.whl (455.6 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

sfst-1.6.0-cp310-cp310-win_amd64.whl (107.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

sfst-1.6.0-cp310-cp310-win32.whl (91.3 kB view hashes)

Uploaded CPython 3.10 Windows x86

sfst-1.6.0-cp310-cp310-musllinux_1_1_x86_64.whl (868.1 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

sfst-1.6.0-cp310-cp310-musllinux_1_1_i686.whl (946.7 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

sfst-1.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (369.9 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

sfst-1.6.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (401.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

sfst-1.6.0-cp310-cp310-macosx_11_0_arm64.whl (216.3 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

sfst-1.6.0-cp310-cp310-macosx_10_9_universal2.whl (452.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

sfst-1.6.0-cp39-cp39-win_amd64.whl (107.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

sfst-1.6.0-cp39-cp39-win32.whl (91.5 kB view hashes)

Uploaded CPython 3.9 Windows x86

sfst-1.6.0-cp39-cp39-musllinux_1_1_x86_64.whl (868.2 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

sfst-1.6.0-cp39-cp39-musllinux_1_1_i686.whl (946.9 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

sfst-1.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (370.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

sfst-1.6.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (401.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

sfst-1.6.0-cp39-cp39-macosx_11_0_arm64.whl (216.4 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

sfst-1.6.0-cp39-cp39-macosx_10_9_universal2.whl (452.4 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

sfst-1.6.0-cp38-cp38-win_amd64.whl (107.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

sfst-1.6.0-cp38-cp38-win32.whl (91.3 kB view hashes)

Uploaded CPython 3.8 Windows x86

sfst-1.6.0-cp38-cp38-musllinux_1_1_x86_64.whl (868.0 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

sfst-1.6.0-cp38-cp38-musllinux_1_1_i686.whl (946.6 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

sfst-1.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (369.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

sfst-1.6.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (401.0 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

sfst-1.6.0-cp38-cp38-macosx_11_0_arm64.whl (216.2 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

sfst-1.6.0-cp38-cp38-macosx_10_9_universal2.whl (451.9 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page