Class: Xberg::LateInteractionModelTypePreset
- Inherits:
-
Data
- Object
- Data
- Xberg::LateInteractionModelTypePreset
- Extended by:
- T::Sig
- Includes:
- LateInteractionModelType
- Defined in:
- lib/xberg/native.rb
Overview
Use a preset ColBERT model (recommended).
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
268 269 270 |
# File 'lib/xberg/native.rb', line 268 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
285 286 287 |
# File 'lib/xberg/native.rb', line 285 def self.from_hash(hash) new(name: hash[:name] || hash["name"]) end |
Instance Method Details
#custom? ⇒ Boolean
279 |
# File 'lib/xberg/native.rb', line 279 def custom? = false |
#plugin? ⇒ Boolean
281 282 283 |
# File 'lib/xberg/native.rb', line 281 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
277 |
# File 'lib/xberg/native.rb', line 277 def preset? = true |