Class DuzYaziKokOkuyucu

  • All Implemented Interfaces:
    KokOkuyucu

    public class DuzYaziKokOkuyucu
    extends java.lang.Object
    implements KokOkuyucu
    BinarySozlukOkuyucu sınıfı düzyazı olarak düzenlenmiş sözlüğü okur. Aşağıdaki kod parçası bir binary sözlükteki tüm kökleri okur.
     ...
     KokOkuyucu okuyucu = new DuzYaziKokOkuyucu();
     okuyucu.initialize("kaynaklar/kb/duzyazi-kokler.txt");
     Kok kok = null;
     while((kok = sozlukOkuyucu.oku())!= null){
          ekle(kok); // Elde edilen kök nesnesi ile ne gerekiyorsa yap.
     }
     ...
     
    Author:
    MDA
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.BufferedReader reader  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Kok> hepsiniOku()  
      Kok oku()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • reader

        protected java.io.BufferedReader reader
    • Constructor Detail

      • DuzYaziKokOkuyucu

        public DuzYaziKokOkuyucu​(java.lang.String dosyaAdi,
                                 KokOzelDurumBilgisi ozelDurumlar,
                                 Alfabe alfabe,
                                 java.util.Map<java.lang.String,​KelimeTipi> kokTipAdlari)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • hepsiniOku

        public java.util.List<Kok> hepsiniOku()
                                       throws java.io.IOException
        Specified by:
        hepsiniOku in interface KokOkuyucu
        Throws:
        java.io.IOException
      • oku

        public Kok oku()
                throws java.io.IOException
        Specified by:
        oku in interface KokOkuyucu
        Throws:
        java.io.IOException