Class: VivlioStarter::CLI::Metrics::VocabularyStats
- Inherits:
-
Data
- Object
- Data
- VivlioStarter::CLI::Metrics::VocabularyStats
- Defined in:
- lib/vivlio_starter/cli/metrics/analyzer.rb
Overview
語彙分析結果を保持するイミュータブルデータ。 ttr は生の Type-Token Ratio(文書長に依存して低く出る参考値)、 mattr は窓付き移動平均 TTR(文書長に頑健な多様性の主指標)。
Instance Attribute Summary collapse
-
#alpha_char_count ⇒ Object
readonly
Returns the value of attribute alpha_char_count.
-
#avg_word_length ⇒ Object
readonly
Returns the value of attribute avg_word_length.
-
#hira_char_count ⇒ Object
readonly
Returns the value of attribute hira_char_count.
-
#kanji_char_count ⇒ Object
readonly
Returns the value of attribute kanji_char_count.
-
#kanji_ratio ⇒ Object
readonly
Returns the value of attribute kanji_ratio.
-
#kata_char_count ⇒ Object
readonly
Returns the value of attribute kata_char_count.
-
#mattr ⇒ Object
readonly
Returns the value of attribute mattr.
-
#tokens_map ⇒ Object
readonly
Returns the value of attribute tokens_map.
-
#total_char_count ⇒ Object
readonly
Returns the value of attribute total_char_count.
-
#total_tokens ⇒ Object
readonly
Returns the value of attribute total_tokens.
-
#total_word_length ⇒ Object
readonly
Returns the value of attribute total_word_length.
-
#ttr ⇒ Object
readonly
Returns the value of attribute ttr.
-
#unique_tokens ⇒ Object
readonly
Returns the value of attribute unique_tokens.
Instance Attribute Details
#alpha_char_count ⇒ Object (readonly)
Returns the value of attribute 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_length ⇒ Object (readonly)
Returns the value of attribute 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_count ⇒ Object (readonly)
Returns the value of attribute 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_count ⇒ Object (readonly)
Returns the value of attribute 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_ratio ⇒ Object (readonly)
Returns the value of attribute kanji_ratio
50 51 52 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50 def kanji_ratio @kanji_ratio end |
#kata_char_count ⇒ Object (readonly)
Returns the value of attribute kata_char_count
50 51 52 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50 def kata_char_count @kata_char_count end |
#mattr ⇒ Object (readonly)
Returns the value of attribute mattr
50 51 52 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50 def mattr @mattr end |
#tokens_map ⇒ Object (readonly)
Returns the value of attribute tokens_map
50 51 52 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50 def tokens_map @tokens_map end |
#total_char_count ⇒ Object (readonly)
Returns the value of attribute 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_tokens ⇒ Object (readonly)
Returns the value of attribute total_tokens
50 51 52 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50 def total_tokens @total_tokens end |
#total_word_length ⇒ Object (readonly)
Returns the value of attribute total_word_length
50 51 52 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50 def total_word_length @total_word_length end |
#ttr ⇒ Object (readonly)
Returns the value of attribute ttr
50 51 52 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50 def ttr @ttr end |
#unique_tokens ⇒ Object (readonly)
Returns the value of attribute unique_tokens
50 51 52 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 50 def unique_tokens @unique_tokens end |