Class: PromptSanitizer::DetectedEntity
- Inherits:
-
Struct
- Object
- Struct
- PromptSanitizer::DetectedEntity
- Defined in:
- lib/prompt_sanitizer/result.rb
Overview
Represents a single detected PII entity.
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#end_pos ⇒ Object
Returns the value of attribute end_pos.
-
#entity_type ⇒ Object
Returns the value of attribute entity_type.
-
#layer ⇒ Object
Returns the value of attribute layer.
-
#original ⇒ Object
Returns the value of attribute original.
-
#replacement ⇒ Object
Returns the value of attribute replacement.
-
#start_pos ⇒ Object
Returns the value of attribute start_pos.
Instance Attribute Details
#confidence ⇒ Object
Returns the value of attribute confidence
5 6 7 |
# File 'lib/prompt_sanitizer/result.rb', line 5 def confidence @confidence end |
#end_pos ⇒ Object
Returns the value of attribute end_pos
5 6 7 |
# File 'lib/prompt_sanitizer/result.rb', line 5 def end_pos @end_pos end |
#entity_type ⇒ Object
Returns the value of attribute entity_type
5 6 7 |
# File 'lib/prompt_sanitizer/result.rb', line 5 def entity_type @entity_type end |
#layer ⇒ Object
Returns the value of attribute layer
5 6 7 |
# File 'lib/prompt_sanitizer/result.rb', line 5 def layer @layer end |
#original ⇒ Object
Returns the value of attribute original
5 6 7 |
# File 'lib/prompt_sanitizer/result.rb', line 5 def original @original end |
#replacement ⇒ Object
Returns the value of attribute replacement
5 6 7 |
# File 'lib/prompt_sanitizer/result.rb', line 5 def replacement @replacement end |
#start_pos ⇒ Object
Returns the value of attribute start_pos
5 6 7 |
# File 'lib/prompt_sanitizer/result.rb', line 5 def start_pos @start_pos end |