Skip to main content

Trip Advisor dataset for Review Graph Mining Project

Project description

GPLv3 Build Status Release PyPi Japanese

Logo

For the Review Graph Mining project, this package provides a loader of the Trip Advisor dataset provided by Dr. Wang.

Installation

Use pip to install this package.

$ pip install --upgrade rgmining-tripadvisor-dataset

Usage

This package provides module tripadvisor and this module provides load function. The load function takes a graph object.

For example, the following code constructs a graph object provides the FRAUDAR algorithm, loads the Trip Advisor dataset, runs the algorithm, and then outputs names of anomalous reviewers. Since this dataset consists of huge reviews, loading may take long time.

import fraudar
import tripadvisor

# Construct a graph and load the dataset.
graph = fraudar.ReviewGraph()
tripadvisor.load(graph)

# Run the analyzing algorithm.
graph.update()

# Print names of reviewers who are judged as anomalous.
for r in graph.reviewers:
  if r.anomalous_score == 1:
    print r.name

# The number of reviewers the dataset has: -> 1169456.
len(graph.reviewers)

# The number of reviewers judged as anomalous: -> 147.
len([r for r in graph.reviewers if r.anomalous_score == 1])

Note that you may need to install the FRAUDAR algorithm for the Review Mining Project by pip install rgmining-fraudar.

License

This software is released under The GNU General Public License Version 3, see COPYING for more detail.

The authors of the Trip Advisor dataset, which this software imports, requires to cite the following papers when you publish research papers using this package:

  • Hongning Wang, Yue Lu, and ChengXiang Zhai, “Latent Aspect Rating Analysis without Aspect Keyword Supervision,” In Proc. of the 17th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD’2011), pp.618-626, 2011;

  • Hongning Wang, Yue Lu, and Chengxiang Zhai, “Latent Aspect Rating Analysis on Review Text Data: A Rating Regression Approach,” In Proc. of the 16th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD’2010), pp.783-792, 2010.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rgmining_tripadvisor_dataset-0.6.2.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

rgmining_tripadvisor_dataset-0.6.2-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file rgmining_tripadvisor_dataset-0.6.2.tar.gz.

File metadata

  • Download URL: rgmining_tripadvisor_dataset-0.6.2.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

File hashes

Hashes for rgmining_tripadvisor_dataset-0.6.2.tar.gz
Algorithm Hash digest
SHA256 bf6963e7386dd4a3421a675e07681627e1f154d4e95158584485f7b86dee7d5a
MD5 afd33a45124d1fa58815330940229000
BLAKE2b-256 dfe0375bfd56ce70e70e34b373316a5870b5b9319400e0d547cc09496288c6d3

See more details on using hashes here.

File details

Details for the file rgmining_tripadvisor_dataset-0.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for rgmining_tripadvisor_dataset-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4b6247fd444c003d915911f781369759d77447e738a015f01f57309ed20d57a7
MD5 aa63fa2eef146d023a0b8744d988bf54
BLAKE2b-256 3b79ee9fe250f4b8a288dfcdbf7833f9b5f060464fd0d575e3d9f2ef9325410c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page