Class: VivlioStarter::CLI::Metrics::VocabularyStats

Inherits:
Data
  • Object
show all
Defined in:
lib/vivlio_starter/cli/metrics/analyzer.rb

Overview

語彙分析結果を保持するイミュータブルデータ。 ttr は生の Type-Token Ratio(文書長に依存して低く出る参考値)、 mattr は窓付き移動平均 TTR(文書長に頑健な多様性の主指標)。

Instance Attribute Summary collapse

Instance Attribute Details

#alpha_char_countObject (readonly)

Returns the value of attribute alpha_char_count

Returns:

  • (Object)

    the current value of alpha_char_count



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def alpha_char_count
  @alpha_char_count
end

#avg_word_lengthObject (readonly)

Returns the value of attribute avg_word_length

Returns:

  • (Object)

    the current value of avg_word_length



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def avg_word_length
  @avg_word_length
end

#hira_char_countObject (readonly)

Returns the value of attribute hira_char_count

Returns:

  • (Object)

    the current value of hira_char_count



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def hira_char_count
  @hira_char_count
end

#kanji_char_countObject (readonly)

Returns the value of attribute kanji_char_count

Returns:

  • (Object)

    the current value of kanji_char_count



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def kanji_char_count
  @kanji_char_count
end

#kanji_ratioObject (readonly)

Returns the value of attribute kanji_ratio

Returns:

  • (Object)

    the current value of kanji_ratio



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def kanji_ratio
  @kanji_ratio
end

#kata_char_countObject (readonly)

Returns the value of attribute kata_char_count

Returns:

  • (Object)

    the current value of kata_char_count



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def kata_char_count
  @kata_char_count
end

#mattrObject (readonly)

Returns the value of attribute mattr

Returns:

  • (Object)

    the current value of mattr



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def mattr
  @mattr
end

#tokens_mapObject (readonly)

Returns the value of attribute tokens_map

Returns:

  • (Object)

    the current value of tokens_map



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def tokens_map
  @tokens_map
end

#total_char_countObject (readonly)

Returns the value of attribute total_char_count

Returns:

  • (Object)

    the current value of total_char_count



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def total_char_count
  @total_char_count
end

#total_tokensObject (readonly)

Returns the value of attribute total_tokens

Returns:

  • (Object)

    the current value of total_tokens



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def total_tokens
  @total_tokens
end

#total_word_lengthObject (readonly)

Returns the value of attribute total_word_length

Returns:

  • (Object)

    the current value of total_word_length



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def total_word_length
  @total_word_length
end

#ttrObject (readonly)

Returns the value of attribute ttr

Returns:

  • (Object)

    the current value of ttr



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def ttr
  @ttr
end

#unique_tokensObject (readonly)

Returns the value of attribute unique_tokens

Returns:

  • (Object)

    the current value of unique_tokens



50
51
52
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50

def unique_tokens
  @unique_tokens
end