Skip to main content

Add your description here

Project description

Installation

uv pip install teraflopai-daft

Usage

Text Segmentation

import daft
from teraflopai_daft import attach_teraflopai_provider
from teraflopai_daft.expressions import segment_text

attach_teraflopai_provider()

df = daft.from_pydict(
    {
        "text": [
            "City of Houma",
            "UNITED STATES of America, Appellee, v. Daniel Dee VEON, Appellant.",
        ]
    }
)

df = df.with_column("segments", segment_text(df["text"], provider="teraflopai"))
df.show()

Search

import daft
from teraflopai_daft import attach_teraflopai_provider
from teraflopai_daft.expressions import search_text

attach_teraflopai_provider()

df = daft.from_pydict(
    {
        "text": [
            "City of Houma",
            "Daniel Dee VEON",
        ]
    }
)

df = df.with_column("search", search_text(df["text"], provider="teraflopai"))
df.show()

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

teraflopai_daft-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teraflopai_daft-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file teraflopai_daft-0.1.0.tar.gz.

File metadata

  • Download URL: teraflopai_daft-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for teraflopai_daft-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31e55f844fb0f2bb454de40452929fa28acfe69ffdf9d49f3f927ffa51eda712
MD5 85dd5d5a61fd2c4d7d748806201e0032
BLAKE2b-256 54ea4d249381a922ed068c1da6e00ab2fea0ac8a04f21ed12a0aca66201af51a

See more details on using hashes here.

File details

Details for the file teraflopai_daft-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for teraflopai_daft-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fe7b6c2578caf43a39c834d16ad470bbc47dd85a1a364f735aadcccf63052ca
MD5 47b52cfff60f6244163e6017a66e22d0
BLAKE2b-256 4d324cc6862358b73ead1501842dcaf5e4106df9590194d4faf5009e557010f5

See more details on using hashes here.

Supported by

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