Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kerollmops/musicbrainz-artist-scoring
https://github.com/kerollmops/musicbrainz-artist-scoring
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kerollmops/musicbrainz-artist-scoring
- Owner: Kerollmops
- License: mit
- Created: 2024-03-17T14:29:53.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-11T17:21:38.000Z (6 months ago)
- Last Synced: 2024-05-11T18:33:10.457Z (6 months ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# musicbrainz-artist-scoring
This repository is used to compute a 5-star rating for the MusicBrainz song dataset. You can read the formula in the code.
> [!NOTE]
> You can [use this script](https://gist.github.com/Kerollmops/e5548d09b47127ff5bddb23eaf43c992) along with the
> [new _Edit Documents with Function_ prototype](https://meilisearch.notion.site/Edit-Documents-with-Rhai-0cff8fea7655436592e7c8a6de932062?pvs=74) to do it more easily.## Usage
1. First compile the program in release.
```bash
cargo build --release
```2. Once you [downloaded the NDJSON MusicBrainz dataset][mb-download-link] you can pass it a first time in this program to output documents with a raw-rated field.
```bash
gzcat ~/Downloads/musicbrainz.ndjson.gz | ./target/release/musicbrainz-artist-scoring | gzip | cpipe -vt > ~/Downloads/musicbrainz-rated.ndjson.gz
```3. After this you'll need to run a small script that extracts the raw-rated scores for the top musics of the dataset. This script will output the `BEST_SCORE` and `SMALLEST_TOP_SCORE` that you'll need to modify in the code.
```bash
./compute-best-scores.sh
```4. Once you modified then, please go to step 1 and stop before step 3. You can use the latest dataset you just got with a great 5-star rating included 🎉
[mb-download-link]: https://www.notion.so/meilisearch/Songs-from-MusicBrainz-686e31b2bd3845898c7746f502a6e117