Skip to main content

InSearch

📚 Introduce

전문 검색을 지원하는 파이썬 기반 역색인 구조 라이브러리

  • 형태소 분석기 : 은전한잎
  • 검색 알고리즘 : BM25 알고리즘 구현

Python-based inverted index structure library with full-text search support

  • Morphology Analyzer : eunjeon
  • Algorithm of Search : BM25

🤝 Team

2ternal fortune00
ddft97@gmail.com sinyoungbok99@gmail.com
dev. BM24 & Analyzer dev. main function

🔧 Installation

pip install InSearch

🍏 Using

Initalize

import InSearch as is

docs = ["동해물과 백두산이 마르고 닳도록 하느님이 보우하사 우리나라 만세 무궁화 삼천리 화려 강산 대한 사람 대한으로 길이 보전하세",
        "남산 위에 저 소나무 철갑을 두른 듯 바람 서리 불변함은 우리 기상일세 무궁화 삼천리 화려 강산 대한 사람 대한으로 길이 보전하세",
        "가을 하늘 공활한데 높고 구름 없이 밝은 달은 우리 가슴 일편단심일세 무궁화 삼천리 화려 강산 대한 사람 대한으로 길이 보전하세",
        "이 기상과 이 맘으로 충성을 다하여 괴로우나 즐거우나 나라 사랑하세 무궁화 삼천리 화려 강산 대한 사람 대한으로 길이 보전하세"]


insearch = is.InSearch()
for doc_id, doc_content in enumerate(docs):
    insearch.add_document(doc_id, doc_content)

Search with full-text

query = "구름과 달"

insearch.get_scores(query)
# [(0.6978270940070869, 0), (2.4242033059345935, 2), (0.6794766371887851, 3)]

insearch.search(query)
# [2, 0, 3]

🕸 Web for Test

CNUCSE-Team2의 InSearch-web를 통해 해당 라이브러리 작동을 확인할 수 있어요!

Metadata

Release files for InSearch 0.1.4

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

Built distribution (wheel)

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

Release files / InSearch-0.1.4-py3-none-any.whl

Download URL InSearch-0.1.4-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aed1e58ad5ead6fde0afad22e5dad4a914f1a1fa3d6e45759a47bf9e0f961d5a
BLAKE2b-256 checksum
How to use checksums
0afd53b041b673cc2e31ac4984b20e06db3271217e09e2d23a171acc60c4ebbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Security for InSearch 0.1.4

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