GithubHelp home page GithubHelp logo

brian-mcclune-nnl / mal-haystack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mcclunatic/mal-haystack

0.0 0.0 0.0 1.91 MB

Demo of deepset-ai/haystack against stoicstatic/mal-top-10k-anime-details Kaggle dataset.

Python 62.18% Jupyter Notebook 37.82%

mal-haystack's Introduction

MAL-Haystack

This repo demonstrates the use of haystack against a MyAnimeList Kaggle dataset.

Environment setup

This guide assumes you have conda installed. First, create and activate the mal environment:

conda create -n mal python=3.10
conda activate mal

Then, install poetry:

pip install poetry

Finally, install package dependencies using poetry:

poetry install

NOTE: Because PyTorch is being installed from a secondary source, and because Poetry downloads and caches all packages from a source, expect to wait a long time to resolve the environment for the first time! See these Instructions for installing PyTorch to learn more.

Dataset download

These instructions assume you have a Kaggle account. If not, please create one! First, visit the Kaggle website and navigate to your account page. Under the API section, click Create API token. It will download a kaggle.json file. Save that token in a .kaggle directory in your home area.

Linux: ~/.kaggle/kaggle.json Windows: C:\Users%USERNAME%.kaggle\kaggle.json

Then, use the Kaggle CLI (made available once you've run poetry install) to download the dataset:

cd data
kaggle datasets download stoicstatic/mal-top-10k-anime-details

Example usage

Try running

python -m mal_haystack Review "MAL Anime Reviews 85k.csv" \
    -z .\data\mal-top-10k-anime-details.zip \
    -m "Anime Title" -m "Anime URL" -m "Overall Rating" \
    -q "Who are the main characters?"

mal-haystack's People

Contributors

brian-mcclune-nnl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.