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)


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

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

Instance Attribute Details

#modeString?

Returns the value of attribute mode.

Returns:

  • (String, nil)


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

def mode
  @mode
end

#preserve_important_wordsBoolean?

Returns the value of attribute preserve_important_words.

Returns:

  • (Boolean, nil)


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

def preserve_important_words
  @preserve_important_words
end

Class Method Details

.defaultTokenReductionOptions



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

def self.default: () -> TokenReductionOptions