- Timestamp:
- 2020-02-12T19:12:42+13:00 (4 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
other-projects/maori-lang-detection/src/org/greenstone/atea/SummaryTool.java
r33909 r33911 16 16 * TO COMPILE: 17 17 * maori-lang-detection/src$ 18 * javac -cp ".:../conf:../lib/*" org/greenstone/atea/ WebPageURLsListing.java18 * javac -cp ".:../conf:../lib/*" org/greenstone/atea/SummaryTool.java 19 19 * 20 20 * TO RUN: 21 21 * maori-lang-detection/src$ 22 * java -cp ".:../conf:../lib/*" org/greenstone/atea/ WebPageURLsListing22 * java -cp ".:../conf:../lib/*" org/greenstone/atea/SummaryTool 23 23 * OR: 24 * java -cp ".:../conf:../lib/*" org/greenstone/atea/ WebPageURLsListing../mongodb-data/domainsNZ_IsMRI.txt24 * java -cp ".:../conf:../lib/*" org/greenstone/atea/SummaryTool ../mongodb-data/domainsNZ_IsMRI.txt 25 25 * 26 26 */ 27 public class WebPageURLsListing{28 static Logger logger = Logger.getLogger(org.greenstone.atea. WebPageURLsListing.class.getName());27 public class SummaryTool { 28 static Logger logger = Logger.getLogger(org.greenstone.atea.SummaryTool.class.getName()); 29 29 static private final long FIXED_SEED = 1000; 30 30 … … 49 49 50 50 51 public WebPageURLsListing(MongoDBQueryer mongodbQueryer, File outFolder)51 public SummaryTool(MongoDBQueryer mongodbQueryer, File outFolder) 52 52 { 53 53 this.mongodbQueryer = mongodbQueryer; … … 312 312 313 313 public static void printUsage() { 314 System.err.println("Usage: WebPageURLsListing[domains.txt]");314 System.err.println("Usage: SummaryTool [domains.txt]"); 315 315 } 316 316 … … 340 340 // output files will be stored in mongodb-data-auto 341 341 File outFolder = new File("../mongodb-data-auto/").getAbsoluteFile(); 342 WebPageURLsListing listing = new WebPageURLsListing(mongodb, outFolder);342 SummaryTool listing = new SummaryTool(mongodb, outFolder); 343 343 344 344 System.out.println("*************************************"); 345 345 346 346 347 if(args.length >= 1) { 347 if(args.length >= 1) { // web page urls listing mode 348 348 File domainsFile = new File(args[0]); 349 349 if(!domainsFile.exists()) {
Note:
See TracChangeset
for help on using the changeset viewer.