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.1.tar.gz (3.0 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.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for teraflopai_daft-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f500da3003aea95dec41138e8fa3ded03d8801b472753e3f872c3d550d7a1822
MD5 62414e76851813f882e463b3927684a8
BLAKE2b-256 80a48945141fdd5b07ec27cf77ee4fd4f2a7d81ce3905b669001c3ef7a2d988d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for teraflopai_daft-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69a64135b6267c036db1ff2f53eea52c48e7e7831b842ae02ed0d5964b6c7556
MD5 4b6c0f2194abaa62b9bea84886d78591
BLAKE2b-256 9c74b9f7a4a44cb54255a7782af61cb9cb99989ec68d8b4cd75c7ef78772faa5

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