Package com.intel.hadoop.graphbuilder.demoapps.wikipedia

Examples of com.intel.hadoop.graphbuilder.demoapps.wikipedia.WikiPageInputFormat


    Job job = new CreateLinkGraph().new Job();
    String wikiinput = args[0];
    String graphoutput = args[1];

    GraphTokenizer tokenizer = new LinkGraphTokenizer();
    InputFormat format = new WikiPageInputFormat();

    LOG.info("========== Creating Graph ================");
    job.run(tokenizer, format, new String[] { wikiinput }, graphoutput);
    LOG.info("========== Done creating graph ================");
  }
View Full Code Here


    String graphoutput = args[1];
    if (args.length >= 3)
      job.addUserOpt("Dictionary", args[2]);

    GraphTokenizer tokenizer = new WordCountGraphTokenizer();
    InputFormat format = new WikiPageInputFormat();

    LOG.info("========== Creating Graph ================");
    job.run(tokenizer, format, new String[] { wikiinput }, graphoutput);
    LOG.info("========== Done creating graph ================");
  }
View Full Code Here

      NotFoundException, ParserConfigurationException, IOException {
    String wikiinput = args[0];
    String graphoutput = args[1];

    GraphTokenizer tokenizer = new LinkGraphTokenizer();
    InputFormat format = new WikiPageInputFormat();

    PreprocessJobTest test = new PreprocessJobTest();
    Job job = test.new Job();
    job.run(tokenizer, format, new String[] { wikiinput }, graphoutput);
  }
View Full Code Here

TOP

Related Classes of com.intel.hadoop.graphbuilder.demoapps.wikipedia.WikiPageInputFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.