Class: Xberg::TokenReductionOptions

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTokenReductionOptions

Returns a new instance of TokenReductionOptions.

Parameters:

  • mode: (String)
  • preserve_important_words: (Boolean)


242
# File 'sig/types.rbs', line 242

def initialize: (?mode: String, ?preserve_important_words: bool) -> void

Instance Attribute Details

#modeString?

Returns the value of attribute mode.

Returns:

  • (String, nil)


239
240
241
# File 'sig/types.rbs', line 239

def mode
  @mode
end

#preserve_important_wordsBoolean?

Returns the value of attribute preserve_important_words.

Returns:

  • (Boolean, nil)


240
241
242
# File 'sig/types.rbs', line 240

def preserve_important_words
  @preserve_important_words
end

Class Method Details

.defaultTokenReductionOptions



243
# File 'sig/types.rbs', line 243

def self.default: () -> TokenReductionOptions