Class NerEntities
java.lang.Object
com.iqser.red.service.redaction.v1.server.model.NerEntities
Represents a collection of named entity recognition (NER) entities.
This class provides methods to manage and query NER entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static final record
Represents a single NER entity with its value, text range, and type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasEntitiesOfType
(String type) Checks if there are any entities of a specified type.void
merge
(NerEntities other) streamEntitiesOfType
(String type) Returns a stream of NER entities of a specified type.
-
Constructor Details
-
NerEntities
public NerEntities() -
NerEntities
-
-
Method Details
-
merge
-
hasEntitiesOfType
Checks if there are any entities of a specified type.- Parameters:
type
- The type of entity to check for.- Returns:
- true if there is at least one entity of the specified type, false otherwise.
-
streamEntitiesOfType
Returns a stream of NER entities of a specified type.- Parameters:
type
- The type of entities to return.- Returns:
- a stream of
NerEntities.NerEntity
objects of the specified type.
-
getNerEntityList
-