Class: Xberg::TokenReductionConfig
- Inherits:
-
Object
- Object
- Xberg::TokenReductionConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#custom_stopwords ⇒ Hash[String, Array[String]]?
Returns the value of attribute custom_stopwords.
-
#enable_parallel ⇒ Boolean?
Returns the value of attribute enable_parallel.
-
#enable_semantic_clustering ⇒ Boolean?
Returns the value of attribute enable_semantic_clustering.
-
#language_hint ⇒ String?
Returns the value of attribute language_hint.
-
#level ⇒ ReductionLevel?
Returns the value of attribute level.
-
#preserve_code ⇒ Boolean?
Returns the value of attribute preserve_code.
-
#preserve_markdown ⇒ Boolean?
Returns the value of attribute preserve_markdown.
-
#preserve_patterns ⇒ Array[String]?
Returns the value of attribute preserve_patterns.
-
#semantic_threshold ⇒ Float?
Returns the value of attribute semantic_threshold.
-
#target_reduction ⇒ Float?
Returns the value of attribute target_reduction.
-
#use_simd ⇒ Boolean?
Returns the value of attribute use_simd.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TokenReductionConfig
constructor
A new instance of TokenReductionConfig.
Constructor Details
#initialize ⇒ TokenReductionConfig
Returns a new instance of TokenReductionConfig.
724 |
# File 'sig/types.rbs', line 724
def initialize: (?level: ReductionLevel, ?language_hint: String, ?preserve_markdown: bool, ?preserve_code: bool, ?semantic_threshold: Float, ?enable_parallel: bool, ?use_simd: bool, ?custom_stopwords: Hash[String, Array[String]], ?preserve_patterns: Array[String], ?target_reduction: Float, ?enable_semantic_clustering: bool) -> void
|
Instance Attribute Details
#custom_stopwords ⇒ Hash[String, Array[String]]?
Returns the value of attribute custom_stopwords.
719 720 721 |
# File 'sig/types.rbs', line 719 def custom_stopwords @custom_stopwords end |
#enable_parallel ⇒ Boolean?
Returns the value of attribute enable_parallel.
717 718 719 |
# File 'sig/types.rbs', line 717 def enable_parallel @enable_parallel end |
#enable_semantic_clustering ⇒ Boolean?
Returns the value of attribute enable_semantic_clustering.
722 723 724 |
# File 'sig/types.rbs', line 722 def enable_semantic_clustering @enable_semantic_clustering end |
#language_hint ⇒ String?
Returns the value of attribute language_hint.
713 714 715 |
# File 'sig/types.rbs', line 713 def language_hint @language_hint end |
#level ⇒ ReductionLevel?
Returns the value of attribute level.
712 713 714 |
# File 'sig/types.rbs', line 712 def level @level end |
#preserve_code ⇒ Boolean?
Returns the value of attribute preserve_code.
715 716 717 |
# File 'sig/types.rbs', line 715 def preserve_code @preserve_code end |
#preserve_markdown ⇒ Boolean?
Returns the value of attribute preserve_markdown.
714 715 716 |
# File 'sig/types.rbs', line 714 def preserve_markdown @preserve_markdown end |
#preserve_patterns ⇒ Array[String]?
Returns the value of attribute preserve_patterns.
720 721 722 |
# File 'sig/types.rbs', line 720 def preserve_patterns @preserve_patterns end |
#semantic_threshold ⇒ Float?
Returns the value of attribute semantic_threshold.
716 717 718 |
# File 'sig/types.rbs', line 716 def semantic_threshold @semantic_threshold end |
#target_reduction ⇒ Float?
Returns the value of attribute target_reduction.
721 722 723 |
# File 'sig/types.rbs', line 721 def target_reduction @target_reduction end |
#use_simd ⇒ Boolean?
Returns the value of attribute use_simd.
718 719 720 |
# File 'sig/types.rbs', line 718 def use_simd @use_simd end |
Class Method Details
.default ⇒ TokenReductionConfig
725 |
# File 'sig/types.rbs', line 725
def self.default: () -> TokenReductionConfig
|