00001 #include "_SuffixArrayScanningBase.h"
00002 #include "stdio.h"
00003 #include "stdlib.h"
00004 #include <iostream>
00005 #include <fstream>
00006 #include <map>
00007
00008 using namespace std;
00009
00015 int main(int argc, char * argv[]){
00016
00017
00018
00019 if(argc<3){
00020 fprintf(stderr,"\nGiven an indexed corpus, output the type token information for n-grams.\n");
00021 fprintf(stderr,"\nUsage:\n");
00022 fprintf(stderr,"\n%s fileNameStem maxN \n\n",argv[0]);
00023 exit(0);
00024 }
00025
00026 unsigned int maxN = atoi(argv[2]);
00027
00028 C_SuffixArrayScanningBase saObj(argv[1], maxN);
00029 saObj.scanSuffixArrayForTypeToken();
00030
00031 return 1;
00032 }