View source on GitHub |
Non-categorical slot whose values are open text extracted from the input text.
tflite_support.task.processor.MentionedSlot(
slot: str,
mention: tflite_support.task.processor.Mention
)
Attributes | |
---|---|
slot
|
The name of the slot. |
mention
|
The predicted mention. |
Methods
create_from_pb2
@classmethod
create_from_pb2( pb2_obj: _MentionedSlotProto ) -> 'MentionedSlot'
Creates a MentionedSlot
object from the given protobuf object.
to_pb2
to_pb2() -> _MentionedSlotProto
Generates a protobuf object to pass to the C++ layer.
__eq__
__eq__(
other: Any
) -> bool
Checks if this object is equal to the given object.
Args | |
---|---|
other
|
The object to be compared with. |
Returns | |
---|---|
True if the objects are equal. |