Python-based inverted index structure library with full-text search support
Project description
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๋ฅผ ํตํด ํด๋น ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์๋์ ํ์ธํ ์ ์์ด์!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file InSearch-0.1.4-py3-none-any.whl.
File metadata
- Download URL: InSearch-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed1e58ad5ead6fde0afad22e5dad4a914f1a1fa3d6e45759a47bf9e0f961d5a
|
|
| MD5 |
80a5d1643ef39af4dd90d1576ece1759
|
|
| BLAKE2b-256 |
0afd53b041b673cc2e31ac4984b20e06db3271217e09e2d23a171acc60c4ebbc
|