java.lang.Object
com.iqser.red.service.redaction.v1.server.model.NerEntities

public class NerEntities extends Object
Represents a collection of named entity recognition (NER) entities. This class provides methods to manage and query NER entities.
  • Constructor Details

  • Method Details

    • merge

      public void merge(NerEntities other)
    • hasEntitiesOfType

      public boolean hasEntitiesOfType(String type)
      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

      public Stream<NerEntities.NerEntity> streamEntitiesOfType(String type)
      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

      public List<NerEntities.NerEntity> getNerEntityList()