Skip to main content

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.

Release files for rgmining-tripadvisor-dataset 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rgmining-tripadvisor-dataset 0.6.2
File Size Uploaded
rgmining_tripadvisor_dataset-0.6.2.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rgmining-tripadvisor-dataset 0.6.2
File Interpreter ABI Platform
rgmining_tripadvisor_dataset-0.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 41.4 kB

Release files / rgmining_tripadvisor_dataset-0.6.2.tar.gz

Download URL rgmining_tripadvisor_dataset-0.6.2.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bf6963e7386dd4a3421a675e07681627e1f154d4e95158584485f7b86dee7d5a
BLAKE2b-256 checksum
How to use checksums
dfe0375bfd56ce70e70e34b373316a5870b5b9319400e0d547cc09496288c6d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

Release files / rgmining_tripadvisor_dataset-0.6.2-py3-none-any.whl

Download URL rgmining_tripadvisor_dataset-0.6.2-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b6247fd444c003d915911f781369759d77447e738a015f01f57309ed20d57a7
BLAKE2b-256 checksum
How to use checksums
3b79ee9fe250f4b8a288dfcdbf7833f9b5f060464fd0d575e3d9f2ef9325410c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.6

1 release file

0.5.5

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page