Class UserIndexGenerator
java.lang.Object
es.uam.eps.ir.relison.examples.content.UserIndexGenerator
public class UserIndexGenerator
extends java.lang.Object
Class for generating a content index. In this index, each user is represented as a single document.
This type of index is used, for instance, for the Twittomender recommender.
-
Constructor Summary
Constructors Constructor Description UserIndexGenerator()
-
Method Summary
Modifier and Type Method Description static void
main(java.lang.String[] args)
Program for generating a content index.
-
Constructor Details
-
UserIndexGenerator
public UserIndexGenerator()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionProgram for generating a content index.- Parameters:
args
- execution arguments- graph: The route to the social network graph.
- multigraph: true if the graph has multiple edges between users, false otherwise.
- directed: true if the graph is directed, false otherwise.
- weighted: true if the graph is weighted, false otherwise.
- selfLoops: true if the graph accepts selfloops, false otherwise.
- information pieces: A file containing the information contents published by each user.
- header: true if the file has header, false otherwise
- orientation: Selection of pieces: IN for the pieces of the incoming neighbors, OUT for the outgoing ones, UND for both, "own" for only the users' pieces
- index route: directory in which to store the index.
- Throws:
java.io.IOException
- if something goes wrong while reading the contents file / creating the index.
-