View Source Scidata.YelpFullReviews (Scidata v0.1.11)

Module for downloading the Yelp Reviews dataset.

Link to this section Summary

Functions

Downloads the Yelp Reviews training dataset or fetches it locally.

Downloads the Yelp Reviews test dataset or fetches it locally.

Link to this section Functions

@spec download(Keyword.t()) :: %{review: [binary(), ...], rating: [5 | 4 | 3 | 2 | 1]}

Downloads the Yelp Reviews training dataset or fetches it locally.

options

Options.

  • :base_url - Dataset base URL.

    Defaults to "https://s3.amazonaws.com/fast-ai-nlp/"

  • :dataset_file - Dataset filename.

    Defaults to "yelp_review_full_csv.tgz"

  • :cache_dir - Cache directory.

    Defaults to System.tmp_dir!()

Link to this function

download_test(opts \\ [])

View Source
@spec download_test(Keyword.t()) :: %{
  review: [binary(), ...],
  rating: [5 | 4 | 3 | 2 | 1]
}

Downloads the Yelp Reviews test dataset or fetches it locally.

Accepts the same options as download/1.