Skip to main content

wordextractor

한국어 혼성어(blend word) 미등재어 추출 파이프라인

설치

# 기본 설치 (step 1-4)
pip install wordextractor

# LLM 주석 기능 포함 (step 5)
pip install wordextractor[llm]

# 네이버 검색 포함 (step 6)
pip install wordextractor[naver]

# 전체 설치
pip install wordextractor[all]

파이프라인 개요

Step 설명 주요 의존성
step1 기등재 혼성어에서 N-Gram 패턴 추출 pandas
step2 말뭉치에서 어절 빈도 목록 구축 polars
step3 패턴 매칭 + 사전 필터링 + 형태소 분석 ahocorasick-rs, kiwipiepy
step4 말뭉치 용례 추출 polars, ahocorasick-rs
step5 LLM 보조 혼성어 판정 (OpenAI Batch API) openai
step6 네이버 뉴스 최초 출현일 검색 selenium

사용법

1. 설정 파일 작성

config.yaml을 작성합니다. 예시: examples/config.yaml

2. CLI로 실행

# 개별 step 실행
wordextractor -c config.yaml step1
wordextractor -c config.yaml step2

# 단축 명령어
wordextractor -c config.yaml step3

# 전체 파이프라인 실행
wordextractor -c config.yaml run-all

# 특정 구간만 실행
wordextractor -c config.yaml run-all --start 3 --end 5

# 설정 확인
wordextractor -c config.yaml show-config

3. Python API로 사용

from wordextractor import PipelineConfig
from wordextractor.steps.step1_extract_patterns import run as run_step1
from wordextractor.steps.step3_pattern_matching import run as run_step3

cfg = PipelineConfig.from_yaml("config.yaml")
run_step1(cfg)
run_step3(cfg)

필요 리소스

  • wordlist.xlsx — 기등재 혼성어 목록 (혼성어(색인표제어), 음절 수 컬럼 필요)
  • 우리말샘 XLS 파일 디렉토리 (선택)
  • 말뭉치 Parquet 파일 (SC_YYYYMM.parquet 형식)

라이선스

MIT

Metadata

Release files for wordextractor 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wordextractor 0.2.1
File Size Uploaded Provenance Actions
wordextractor-0.2.1.tar.gz 4.5 MB Without provenance Details for wordextractor-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wordextractor 0.2.1
File Interpreter ABI Platform Actions
wordextractor-0.2.1-py3-none-any.whl Python 3 none any Details for wordextractor-0.2.1-py3-none-any.whl

Total release size: 9.0 MB

Release files / wordextractor-0.2.1.tar.gz

Download URL wordextractor-0.2.1.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
f793bd69bd0f4c5d8a0d614dfb3ede19cc1aff744a44099b20c476fe741af9fd
BLAKE2b-256 checksum
How to use checksums
4ec2350a68963cb9428161cad10ce45a74efb9622bb709ef11e0995cc4fe1f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / wordextractor-0.2.1-py3-none-any.whl

Download URL wordextractor-0.2.1-py3-none-any.whl
Size 4.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5b94f03e95e2b233e6bd3f72e3ccd0650b754aa985d58bc440a48f2e641662ae
BLAKE2b-256 checksum
How to use checksums
1b3fab2c46a6d2c84cf1e5c989d025347b1a85b8f21958087630681e3c9d9f3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for wordextractor 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page