https://github.com/legend80s/tf-idf-in-rust
Search engine use TF-IDF algorithm in Rust!
https://github.com/legend80s/tf-idf-in-rust
Last synced: 3 months ago
JSON representation
Search engine use TF-IDF algorithm in Rust!
- Host: GitHub
- URL: https://github.com/legend80s/tf-idf-in-rust
- Owner: legend80s
- License: mit
- Created: 2024-04-08T07:22:51.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-09T13:36:35.000Z (about 1 year ago)
- Last Synced: 2024-04-10T05:37:32.400Z (about 1 year ago)
- Language: Rust
- Size: 227 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TF-IDF in Rust 🦀
A local search engine use TF-IDF algorithm in Rust!
the searching materials are from
## Technical Details
It contains:
- a `Lexer` for word segmentation use `xml-rs` and
- `model` for calculating TF-IDF.
- a web interface for searching use `tiny_http` with input and results dispaying and a `/api/search` API.And it's a CLI app hand-made without `clap` and with subcommands:
- index - Indexing tf-idf into json file.
- serve - Start a local server with web interface for searching.## Start
1 git clone this repo
2 `cargo run index`
3 `cargo run serve`