sparknlp_jsl.annotator.params.reset_sentence_indices_param#

Module Contents#

Classes#

ResetSentenceIndicesParam

It is a base class that reset sentence indices to treat the entire output as if it originates from a single document.

class ResetSentenceIndicesParam#

It is a base class that reset sentence indices to treat the entire output as if it originates from a single document.

resetSentenceIndices#
setResetSentenceIndices(value)#

Set whether to reset sentence indices to treat the entire output as if it originates from a single document.

When set to true, the metadata of each entity will be updated by assigning the sentence key a value of 0, effectively treating the entire output as if it originates from a single document. regardless of the original sentence boundaries. Default: False.

Parameters:

value (bool) – If set to true, sentence indices will be reset to treat the entire output as if it originates from a single document.