Sha256: c1a4db7eba49fee07a1a881b81ecf2111d263b3e434901db3b295e5ec7a20958

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

module Suika
  class Tagger
    def initialize: () -> void
    def parse: (String sentence) -> Array[String]
    def inspect: () -> String

    private

    DICTIONARY_PATH: String
    DICTIONARY_KEY: String
    INT_MAX: untyped

    attr_reader trie: ::DartsClone::DoubleArray

    # type feature = [Integer, Integer, Integer, String, String, String, String, String, String, String]

    # def features: () -> Array[Array[feature]]
    def features: () -> Array[Array[untyped]]
    # def unknowns: () -> Hash[String, Array[feature]]
    def unknowns: () -> Hash[String, Array[untyped]]
    def connect_cost: (Integer r_id, Integer l_id) -> Integer
    def viterbi: (::Suika::Lattice lattice) -> Array[String]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
suika-0.3.2 sig/suika/tagger.rbs
suika-0.3.1 sig/suika/tagger.rbs