Example #1
0
        public String[] MetinOku(Stream sr)
        {
            String[]           kelimeler;
            TurkishTokenStream stream = new TurkishTokenStream(new StreamReader(sr, System.Text.Encoding.GetEncoding("ISO-8859-9")));
            ArrayList          list   = new ArrayList();

            while (true)
            {
                String str = stream.nextWord();
                if (str == null)
                {
                    break;
                }
                list.Add(str);
            }
            if (logger.IsInfoEnabled)
            {
                logger.Info(" Metin kelime sayisi : " + list.Count);
            }
            kelimeler = new String[list.Count];
            for (int i = 0; i < list.Count; i++)
            {
                kelimeler[i] = (String)list[i];
            }
            return(kelimeler);
        }
 public String[] MetinOku(Stream sr)
 {
     String[] kelimeler;
     TurkishTokenStream stream = new TurkishTokenStream(new StreamReader(sr,System.Text.Encoding.GetEncoding("ISO-8859-9")));
     ArrayList list = new ArrayList();
     while (true)
     {
         String str = stream.nextWord();
         if (str == null) break;
         list.Add(str);
     }
     if (logger.IsInfoEnabled)
         logger.Info(" Metin kelime sayisi : " + list.Count);
     kelimeler = new String[list.Count];
     for (int i = 0; i < list.Count; i++)
     {
         kelimeler[i] = (String)list[i];
     }
     return kelimeler;
 }