アットウィキロゴ

SIZXE

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package igo;

/**
*
* @author ce00582
*/
import java.io.*;
import java.util.List;
import net.reduls.igo.Morpheme;
import net.reduls.igo.Tagger;

public class pro{

int n,datanumber,articlenumber;
String[] data=new String[50000];
int s,sx;
String[][] word=new String[4000][5000];
String[] article=new String[50000];
String[] author=new String[50000];

String str,file;
int h;
int[] wordnumber=new int[5000];
int t,t1;
int dicnumber;
String[] dic=new String[1005];
int op;

public static void main(String[] args){
pro test=new pro();
}

pro(){

str="ねこは猫です";

try {
Tagger tagger = new Tagger( "ipadic" );
List<Morpheme> list = tagger.parse(str);
s=0;
for(Morpheme morph : list ){
s=s+1;
word[1][s]=morph.surface;
System.out.println(word[1][s]);

}

} catch(IOException e) { System.err.println(e.getMessage()); }








}
}
最終更新:2011年08月18日 08:14