package den;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import tool.catchword;
public class pro {
int s,datanumber;
String[] data=new String[50000];
int[] piont=new int[500];
public static void main(String[] args) {
pro test=new pro();
}
pro(){
int page;
for(page=1;page<343;page++){
readx("gdata/"+page+".txt");
String tab="";
for(s=1;s<datanumber+1;s++){
catchword sub=new catchword();
tab=sub.makedata(data[s],"table");
}
int p1=card(tab);
if(p1>0)System.out.println(p1+","+tab);
}
}
int card(String str){
int h,c1;
c1=0;
h=0;
if(str.indexOf("名目経済成長")>-1)h=h+1;
if(str.indexOf("年度")>-1)h=h+1;
if(h==2)c1=1;
h=0;
if(str.indexOf("名目経済成長")>-1)h=h+1;
if(str.indexOf("今後3")>-1)h=h+1;
if(h==2)c1=2;
h=0;
if(str.indexOf("名目経済成長")>-1)h=h+1;
if(str.indexOf("今後5")>-1)h=h+1;
if(h==2)c1=3;
h=0;
if(str.indexOf("実質経済")>-1)h=h+1;
if(str.indexOf("年度")>-1)h=h+1;
if(h==2)c1=4;
h=0;
if(str.indexOf("実質経済")>-1)h=h+1;
if(str.indexOf("今後3")>-1)h=h+1;
if(h==2)c1=5;
h=0;
if(str.indexOf("実質経済")>-1)h=h+1;
if(str.indexOf("今後5")>-1)h=h+1;
if(h==2)c1=6;
h=0;
if(str.indexOf("業界需要")>-1)h=h+1;
if(str.indexOf("名目")>-1)h=h+1;
if(str.indexOf("年度")>-1)h=h+1;
if(h==3)c1=7;
h=0;
if(str.indexOf("業界需要")>-1)h=h+1;
if(str.indexOf("名目")>-1)h=h+1;
if(str.indexOf("今後3")>-1)h=h+1;
if(h==3)c1=8;
h=0;
if(str.indexOf("業界需要")>-1)h=h+1;
if(str.indexOf("名目")>-1)h=h+1;
if(str.indexOf("今後5")>-1)h=h+1;
if(h==3)c1=9;
h=0;
if(str.indexOf("業界需要")>-1)h=h+1;
if(str.indexOf("実質")>-1)h=h+1;
if(str.indexOf("年度")>-1)h=h+1;
if(h==3)c1=10;
h=0;
if(str.indexOf("業界需要")>-1)h=h+1;
if(str.indexOf("実質")>-1)h=h+1;
if(str.indexOf("今後3")>-1)h=h+1;
if(h==3)c1=11;
h=0;
if(str.indexOf("業界需要")>-1)h=h+1;
if(str.indexOf("実質")>-1)h=h+1;
if(str.indexOf("今後5")>-1)h=h+1;
if(h==3)c1=12;
h=0;
if(str.indexOf("予想円")>-1)h=h+1;
if(str.indexOf("輸出")>-1)h=h+1;
if(h==2)c1=14;
h=0;
if(str.indexOf("予想円")>-1)h=h+1;
if(c1==0)h=h+1;
if(h==2)c1=13;
if(str.indexOf("採算円")>-1)c1=15;
if(str.indexOf("仕入価格")>-1)c1=16;
if(str.indexOf("販売価格")>-1)c1=17;
h=0;
if(str.indexOf("設備投資")>-1)h=h+1;
if(str.indexOf("過去")>-1)h=h+1;
if(h==2)c1=18;
h=0;
if(str.indexOf("設備投資")>-1)h=h+1;
if(str.indexOf("今後")>-1)h=h+1;
if(h==2)c1=19;
h=0;
if(str.indexOf("正社員")>-1)h=h+1;
if(str.indexOf("過去")>-1)h=h+1;
if(h==2)c1=22;
h=0;
if(str.indexOf("正社員")>-1)h=h+1;
if(str.indexOf("今後")>-1)h=h+1;
if(h==2)c1=23;
h=0;
if(str.indexOf("雇用")>-1)h=h+1;
if(str.indexOf("過去")>-1)h=h+1;
if(c1==0)h=h+1;
if(h==3)c1=20;
h=0;
if(str.indexOf("雇用")>-1)h=h+1;
if(str.indexOf("今後")>-1)h=h+1;
if(c1==0)h=h+1;
if(h==3)c1=21;
h=0;
if(str.indexOf("海外現地生産")>-1)h=h+1;
if(str.indexOf("実績見込み")>-1)h=h+1;
if(str.indexOf("見通し")>-1)h=h+1;
if(h==3)c1=27;
h=0;
if(str.indexOf("海外現地生産")>-1)h=h+1;
if(str.indexOf("実績見込み")>-1)h=h+1;
if(str.indexOf("見通し")>-1)h=0;
if(h==2)c1=25;
h=0;
if(str.indexOf("海外現地生産")>-1)h=h+1;
if(str.indexOf("実績見込み")>-1)h=0;
if(str.indexOf("見通し")>-1)h=h+1;
if(h==2)c1=26;
h=0;
if(str.indexOf("海外現地生産")>-1)h=h+1;
if(str.indexOf("実績見込み")>-1)h=0;
if(str.indexOf("実績")>-1)h=h+1;
if(h==2)c1=24;
h=0;
if(str.indexOf("逆輸入")>-1)h=h+1;
if(str.indexOf("見通")>-1)h=h+1;
if(h==2)c1=30;
h=0;
if(str.indexOf("逆輸入")>-1)h=h+1;
if(str.indexOf("実績見込")>-1)h=h+1;
if(h==2)c1=29;
h=0;
if(str.indexOf("逆輸入")>-1)h=h+1;
if(str.indexOf("実績")>-1)h=h+1;
if(c1==0)h=h+1;
if(h==3)c1=28;
return c1;
}
void readx(String file){
String str;
BufferedReader br;
int s;
s=0;
try {
br = new BufferedReader(new InputStreamReader(new FileInputStream(file),"UTF-8"));
while((str = br.readLine()) != null) {
s=s+1;
data[s]=str;
}
br.close();
} catch (IOException e) {System.out.println(e);}
datanumber=s;
}
}
最終更新:2015年09月19日 01:12