How to set parameters for NLTK StanfordSegmenter ()?

from nltk.tokenize.stanford_segmenter import StanfordSegmenter

segmenter = StanfordSegmenter (path_to_jar= "E:/anaconda/StanfordNLTK/stanford-segmenter.jar",

                    java_class="edu.stanford.nlp.ie.crf.CRFClassifier",
                    path_to_slf4j="E:/anaconda/StanfordNLTK/slf4j-api.jar",
                    path_to_sihan_corpora_dict="E:/anaconda/StanfordNLTK/data",
                    path_to_model="E:/anaconda/StanfordNLTK/data/pku.gz",
                    path_to_dict="E:/anaconda/StanfordNLTK/data/dict-chris6.ser.gz"
                    )

there is a hint: DeprecationWarning: pycharmpycharmpycharm2017pjbpycharmUV professional br 2017.2.3helperspydevpydevdevdevconsole.pypura 6:
The StanfordTokenizer will be deprecated in version 3.2.5.
Please use nltk.parse.corenlp.CoreNLPTokenizer instead."

Mar.03,2021

upgrade nltk to version 3.3 or 3.4 to remove the prompt. If the environment variable is set in advance, path_to_jar and path_to_slf4j do not have to be passed. The remaining four parameters still need to be passed.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be1fcb-30d46.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be1fcb-30d46.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?