Package: rgmining-script
This package provides useful scripts to analyze datasets themselves and
run an method for mining review graphs.InstallationUsepipto install this package.$pipinstall--upgradergmining-scriptdataset commanddataset command provides a set of functions to inspect a dataset. Those
functions are divided to two groups, analyzing reviewer information and
analyzing product information.Analyzing reviewer informationTo analyze reviewer information of a dataset, dataset command provides
the following subcommands:retrieve: output the ID of reviewers who review at least one of the
given products,active: output the ID of reviewers who review at least threshold
items,reviewer_size: output the number of reviews of each reviewer who
reviews target products,filter: output reviews posted by reviewers whose IDs match the given
set of IDs.Analyzing product informationTo analyze product information of a dataset, dataset command provides
the following subcommands:average: output average rating scores of each product,distinct: output distinct product IDs,popular: output ID of products of which the member of reviews >=
threshold.filter: output reviews posted to products of which IDs match the
given set of IDs.variance: output variances of reviews for each product.Basic usageThe basic usage of this command is$dataset<dataset-specifier><dataset-parameters>reviewer<subcommand>or$dataset<dataset-specifier><dataset-parameters>product<subcommand>where the dataset-specifier is a name of the dataset to be analyzed. It
is depended on which libraries you have installed anddataset-hreturns a list of available dataset names.dataset-parameters are optional arguments specified with--dataset-paramflag. The--dataset-paramflag takes a string
which connecting key and value with a single =. The--dataset-paramflag can be given multi-times. You can find what kinds of parameter keys
are defined in the dataset you want to use from documents of functionloaddefined in the dataset.For example, datasetfilemeans loading a dataset from a file, of
which each line contains a review inthe JSON
format.
To load such dataset, usefileas the dataset-specifier and give the
file path as a dataset-parameter withfilekey, i.e.--dataset-paramfile="path/to/file".Seedocument sitefor more
information about each subcommand.analyze commandanalyze command loads a dataset and run a method to find anomalous
reviewers and compute a rating summary of each product.The basic usage of this command is$analyze<dataset-specifier><dataset-parameters><method-specifier><method-parameters>The dataset-specifier and datasset-parameters are the same parameters
described in the dataset command explanation.The method-specifier is a name of installed method. You can see
available method names byanalyze-h.method-parameters are optional arguments specified with--method-paramflag. The--method-paramflag takes a string
which connecting key and value with a single =, and can be given
multi-times.You can find what kinds of parameter keys are defined in the method you
want to run from documents of the constructor of the review graph object
defined in the method.For example,Fraud Eagletakes one parameterepsilonand you can give a value by--method-paramepsilon=0.25.Seedocument sitefor more
information.LicenseThis software is released under The GNU General Public License Version
3, seeCOPYINGfor
more detail.