Skip to main content

텍스트 분석을 위한 Python 패키지

Project description

고급 텍스트 분석을 위한 Python 패키지입니다.

기능

  • 불용어 제거 (remove_stopwords): NLTK를 사용한 불용어 제거
  • 키워드 추출 (extract_keywords): TF-IDF 기반 핵심 키워드 추출
  • 텍스트 요약 (summarize): Gensim을 활용한 텍스트 요약
  • 언어 감지 (detect_language): langdetect를 사용한 언어 감지

설치

pip install textminer-pro-asddzxqw

사용법

from textminer import remove_stopwords, extract_keywords, summarize, detect_language

불용어 제거

text = "This is a sample text with some common stopwords" clean_text = remove_stopwords(text) print(clean_text)

키워드 추출 (상위 5개)

keywords = extract_keywords(text, top_n=5) print(keywords)

텍스트 요약 (20% 길이로)

long_text = "여기에 긴 텍스트를 입력..." summary = summarize(long_text, ratio=0.2) print(summary)

언어 감지

language = detect_language(text) print(f"감지된 언어: {language}") 라이선스 MIT License 저자 asddzxqw (kk020929@naver.com)

5단계: VSCode에서 테스트 실행

VSCode 터미널에서 다음 명령어로 테스트:

# 현재 위치 확인 (프로젝트 루트에 있어야 함)
pwd

# 패키지가 제대로 import되는지 테스트
python -c "from textminer import remove_stopwords; print('Import 성공!')"

# 단위 테스트 실행
python -m pytest tests/ -v

# 또는 unittest로 실행
python -m unittest discover tests/

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

textminer_pro_asddzxqw_test-0.1.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

textminer_pro_asddzxqw_test-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for textminer_pro_asddzxqw_test-0.1.1.tar.gz
Algorithm Hash digest
SHA256 be5eaeb50f877724d3d8ce57b74b45e3165d5e2dcae24d55df065b90b093477a
MD5 1bc2f3c4e874ece19b31ddfc51921d01
BLAKE2b-256 f1ac4825f8c07b7e291a9efdebe34a0af06a344f809eaabee3ea136181cd0cb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for textminer_pro_asddzxqw_test-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39939ca436300b23127e24a7ea4f137d93fd4f5c7a642a1035b585229a4c3dbb
MD5 542739c51c6f0c115b6376db9452aeac
BLAKE2b-256 2c1884000ae12a7be70329e3cee93d4b2ab135fbf025941fa05ba3e668453691

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