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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • main

      public static void main​(java.lang.String[] args) throws java.io.IOException
      Program for generating a content index.
      Parameters:
      args - execution arguments
      1. graph: The route to the social network graph.
      2. multigraph: true if the graph has multiple edges between users, false otherwise.
      3. directed: true if the graph is directed, false otherwise.
      4. weighted: true if the graph is weighted, false otherwise.
      5. selfLoops: true if the graph accepts selfloops, false otherwise.
      6. information pieces: A file containing the information contents published by each user.
      7. header: true if the file has header, false otherwise
      8. 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
      9. 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.