Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dluman/rusty
Rust bindings for the spaCy library.
https://github.com/dluman/rusty
nlp rust
Last synced: 4 days ago
JSON representation
Rust bindings for the spaCy library.
- Host: GitHub
- URL: https://github.com/dluman/rusty
- Owner: dluman
- License: unlicense
- Created: 2020-05-24T14:31:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-11T21:57:30.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T00:52:02.071Z (6 days ago)
- Topics: nlp, rust
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 19
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rusTy
Rust bindings for the [spaCy](https://spacy.io) Python NLP library. It's a work in progress. I'm at that part in another project where it's just easier to take a detour and write some bindings.
## Example
The following performs sentence similarity.
```rust
let spacy = spacy::Module::init();
spacy.load("en_core_web_lg");
let pangram1 = spacy::nlp("With tenure, Suzie’d have all the more leisure for yachting, but her publications are no good.");
let pangram2 = spacy::nlp("Amazingly few discotheques provide jukeboxes.");
pangram1
.call("similarity")
.args(pangram2)
.kwargs("")
.invoke();```