Skip to main content

No project description provided

Project description

스크린샷 2023-01-02 오후 12 56 27

tossicat-python

PyPI GitHub license

tossicat-python은 현재 PyPi에 올라가 있는 파이썬 라이브러리입니다.
해당 소스코드는 PyO3를 사용하여 tossicat-core를 파이썬에서 사용할 수 있도록 바인딩 합니다.

사용방법

먼저 pip를 사용하여 라이브러리를 설치합니다.

pip install tosscat-python

해당 패키지에서는 크게 2가지의 함수를 지원합니다.

postfix(word, tossi)

이 함수는 단어와 토씨(조사)를 파라미터로 받으며 앞 단어에 맞는 토씨로 변환 후 문자열로 합쳐 반환합니다.
예시 코드는 아래와 같습니다.

import tosscat as tc

word = "테스트"
tossi = "은"

result = tc.postfix(word, tossi)

print(result)
테스트는

modify_sentence(sentence)

이 함수는 문장 문자열 중에서 중괄호 {단어, 토씨}로 구성된 값을 파싱하여 올바른 토씨로 반환 후 다시 반환합니다.
예시 코드는 아래와 같습니다.

import tosscat as tc

sentence = "{한국어, 은} 정말 좋은 언어입니다. {커피, 을} 정말 좋아해요"

result = tc.modify_sentence(sentence)

print(result)
한국어는 정말 좋은 언어입니다. 커피를 정말 좋아해요

https://www.youtube.com/watch?v=H9Fj___zmkg

transform(word, tossi)

이 함수는 단어와 토씨(조사)를 파라미터로 받으며 앞 단어에 맞는 토씨로 변환하여 각각 반환합니다.
예시 코드는 아래와 같습니다.

import tosscat as tc

word = "테스트"
tossi = "은"

result = tc.postfix(word, tossi)

print(result)
("테스트", "는")

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

tossicat_python-0.1.1.tar.gz (14.9 kB view details)

Uploaded Source

Built Distributions

tossicat_python-0.1.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (267.7 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.1-cp312-none-win_amd64.whl (134.2 kB view details)

Uploaded CPython 3.12 Windows x86-64

tossicat_python-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (267.0 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (459.4 kB view details)

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

tossicat_python-0.1.1-cp311-none-win_amd64.whl (134.2 kB view details)

Uploaded CPython 3.11 Windows x86-64

tossicat_python-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (266.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.1-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (459.6 kB view details)

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

tossicat_python-0.1.1-cp310-none-win_amd64.whl (134.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

tossicat_python-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (266.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.1-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (459.6 kB view details)

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

tossicat_python-0.1.1-cp39-none-win_amd64.whl (134.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

tossicat_python-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (267.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.1-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (459.5 kB view details)

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

tossicat_python-0.1.1-cp38-none-win_amd64.whl (134.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

tossicat_python-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (267.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.1-cp37-none-win_amd64.whl (134.3 kB view details)

Uploaded CPython 3.7 Windows x86-64

tossicat_python-0.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (267.1 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: tossicat_python-0.1.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for tossicat_python-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fac10b1376724b70dadd33317b836d9afec02d02e71d71ada60114130a3b6a40
MD5 ae185aae2b067a1cddfdbd143d233342
BLAKE2b-256 47fecabecdc5550f42ad2dc8e79635feb1a8ab9250e35390fe70cd28253d7d3b

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 895e89ebd21f690a6955859eff921b0d8b4709aeffd7d57091e37328a7f1c8e8
MD5 f9e9129fc42548915a94eae192652634
BLAKE2b-256 9ce9958b92a90dec2519030a85628ffa2e8606b1dbec306af01a0cea3638e7a0

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 93d7aa008b7ebe04e3544190803e0fc0b2cce03b333101e62d77dcd989921ec3
MD5 05060a95a32042f1a6132bc696b690b7
BLAKE2b-256 46f9bcd265c9d257563c2c08491bf8600afd4421455a6148292b89361f95a38b

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc4a6f24e4fa88f298d7c791b57d054b324af92a6db2865b861a59fd630f0b36
MD5 2109f470643d80dc745d80b278549552
BLAKE2b-256 e3a5397a005420d45457046b752764beaba76b1dec105c914e1ef52a9448625b

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 6bad13ad81f0b0d1d1da3d8a84634fe31f84ff46df97d3c1d8e40210c951fc2c
MD5 f7d110c56e5233629813fd89df61bd0b
BLAKE2b-256 18a0cba31a6165cb6a48fee53c9944ef84e2b4e624567b18223ae1928733abff

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 086b7dd73c6963db6a104d8973d3d18779d979df21b10c298bd777345f323941
MD5 13af7540b6de458af2aa452ff95b3c8e
BLAKE2b-256 d350d782e6d98958389863b2186ba71c40e032f9a3eb8c60e63fca86007e4121

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8b484e8dc16c4364d712d01e1f07fa13dd00607a854d58518650a2369714cb94
MD5 f51a3da4f2000372d01fa3fd2d8408a6
BLAKE2b-256 71030c963f2dd7664c9afc32af043d76d6e963e5528906c8bc6361e1c757cb76

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 fa096b8b2759433d70936a875b285b006d46fab63fb8bcbb20bc9c762a900a0a
MD5 2c2ab0baae0e804468e7e938c3c8589d
BLAKE2b-256 6c7134660636ec75d72a925b618ef223b12c1051cc28fcbee9571086557c8011

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 8a16b5db46237330ff856b3bf6c6b568cfbd3e3aeb412a7ad3444b10a603676f
MD5 85e0418aec9963161fc441e18fddd7e7
BLAKE2b-256 2ec5ecdab16ec68cf793b7763870cf464f8e2e297138285db6b98790c61f33d2

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65e934911cd77a62967fa8c21125404b9d6674443d070548d2da85755c8c1a51
MD5 bfe897b7727320233d6b54077e7eb745
BLAKE2b-256 d1da1c81125de7c1997bbaa717f541a226a15d45cd49fe374ed0bf402e3cb2d5

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 a8e757a0e0a1777bde33d7a22471127eadb6d77859268e22037d122ffddae678
MD5 d43be47f78839eb982f18f0c8613507a
BLAKE2b-256 41a5d8d08c053dca8c5a467bfb93230c3b3f63abed5b0b87aef17f459e746ca3

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 37e16f1c602138ab0dbeb355f6295fab87fa5e4a570cc76430c1e913ab9d8654
MD5 33d6cc7f067bafceb4bd5c8be64ceeb3
BLAKE2b-256 80e1cdcc980b43460817c32bcededadc04cdee0029efa1dcaf4fdfae64b6e124

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c12d8391062aac925cf7e2ab73e18f54a12875a6059e3f21f8a5667034defbc9
MD5 f2f8b4e30cfb4cb7d8ebef137b0ab768
BLAKE2b-256 eeaf5966197be09a02144bf85ad2e31c47302167198b6ac89c29b67afb70be18

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 fadad9d3306cb1cfb466a46bf3c26c98cedf39f6464b9ebe3d663aaa862f1357
MD5 3dcea9dbc53bc4cfbd926465dbc6e4fa
BLAKE2b-256 8f86caffd6c79fb7ecae4b5efd99ec28f5a8a02294d37ee3e699c80a386df540

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 85b6b8cb22c6338c52bc3df0257ba17cc3da88cd5fb5dca48bd6655a3c75899a
MD5 098edc558c4ed6488fa475456d96aa97
BLAKE2b-256 35232e8ee29149d1f3307fd0ca94b459dcfc96c1b8e46888016cd020df51723f

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d9742b8a22a89b368895d9e7c6d678302a606a7826f6c5c74f0250d721e511e6
MD5 d1cd2464da205abb262ba6057748ef83
BLAKE2b-256 820bfda7dc20acfbed8acc01d79dbf502d3ab216b080b5967558bed063e3a7e5

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 d2285634f388341ed2808ae517c68b784d6c4ecb0f7df27fe6298ec78ff016e3
MD5 fecb96494894f72df28b577c88a90bad
BLAKE2b-256 3a8909f7f15f63750f02a00afccc190cb31b17b38535f70fa1406cf89ab8338c

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 85c4e88f2687e1597ba872ecf6089307ae8aec41efdf57a063161aad4d00cdc6
MD5 acee843ae31fb14d12424266aee4017b
BLAKE2b-256 d32cf56b9819055edf581f03bbbf3f979a53c3f4440e2346bcfc4df8355d4514

See more details on using hashes here.

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