RustySozluk
is a Rust library for fetching user entries and thread entries from eksisozluk.com and analyzing sentiment of entries.
With the power of Rust and tokio
library, it is possible to fetch entries in a thread in a very short time.
async/await
JSON
and CSV
formatsAdd rustysozluk
to your Cargo.toml
:
toml
[dependencies]
rustysozluk = "0.1.7"
```rust use rustysozluk::{fetch_user, tokio};
async fn main() -> Result<(), Box
If you want to fetch entries in a thread, you can simple use fetch_thread
function just like fetch_user
function, no need to change anything.
rustysozluk has "analyzer" module which is used for sentiment analysis. It uses Sağlam et al., 2019 model to classify entries as positive, negative and give a "Tone" score between -1 and 1.
here is an example usage:
```rust use rustysozluk::tokio; use rustysozluk::fetchtitle; use rustysozluk::analyzer::analyzer::analyzesentiment;
async fn main() -> Result<(), Box
} ```
Any kind of contribution is welcome! Feel free to open an issue =)