Class: PromptSanitizer::DetectedEntity

Inherits:
Struct
  • Object
show all
Defined in:
lib/prompt_sanitizer/result.rb

Overview

Represents a single detected PII entity.

Instance Attribute Summary collapse

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



5
6
7
# File 'lib/prompt_sanitizer/result.rb', line 5

def confidence
  @confidence
end

#end_posObject

Returns the value of attribute end_pos

Returns:

  • (Object)

    the current value of end_pos



5
6
7
# File 'lib/prompt_sanitizer/result.rb', line 5

def end_pos
  @end_pos
end

#entity_typeObject

Returns the value of attribute entity_type

Returns:

  • (Object)

    the current value of entity_type



5
6
7
# File 'lib/prompt_sanitizer/result.rb', line 5

def entity_type
  @entity_type
end

#layerObject

Returns the value of attribute layer

Returns:

  • (Object)

    the current value of layer



5
6
7
# File 'lib/prompt_sanitizer/result.rb', line 5

def layer
  @layer
end

#originalObject

Returns the value of attribute original

Returns:

  • (Object)

    the current value of original



5
6
7
# File 'lib/prompt_sanitizer/result.rb', line 5

def original
  @original
end

#replacementObject

Returns the value of attribute replacement

Returns:

  • (Object)

    the current value of replacement



5
6
7
# File 'lib/prompt_sanitizer/result.rb', line 5

def replacement
  @replacement
end

#start_posObject

Returns the value of attribute start_pos

Returns:

  • (Object)

    the current value of start_pos



5
6
7
# File 'lib/prompt_sanitizer/result.rb', line 5

def start_pos
  @start_pos
end