docstr: Sets max sentence length to process.
  
  Note that a maximum limit exists depending on the model. If you are working with long single
  sequences, consider splitting up the input first with another annotator e.g. SentenceDetector.
  
  Parameters
  ----------
  value : int
      Max sentence length to process
docstr_tok: ["Sets","max","sentence","length","to","process",".","Note","that","a","maximum","limit","exists","depending","on","the","model",".","If","you","are","working","with","long","single","sequences",",","consider","splitting","up","the","input","first","with","another","annotator","e.g",".","SentenceDetector",".","Parameters","--","--","--","--","--","value",":","int","Max","sentence","length","to","process"]
code: def setMaxSentenceLength(self, value):
      """Sets max sentence length to process.
  
      Note that a maximum limit exists depending on the model. If you are working with long single
      sequences, consider splitting up the input first with another annotator e.g. SentenceDetector.
  
      Parameters
      ----------
      value : int
          Max sentence length to process
      """
      if value > self.max_length_limit:
          raise ValueError(
              f"{self.__class__.__name__} models do not support token sequences longer than {self.max_length_limit}.\n"
              f"Consider splitting up the input first with another annotator e.g. SentenceDetector."
          )
      return self._set(maxSentenceLength=value)
  
imports: from pyspark.ml.param import Param, Params, TypeConverters
label_desc: Use image node_id 1 for calling the HasMaxSentenceLengthLimit obj's underlying member method code with example usage: obj.setMaxSentenceLength(value) and returns: self