class_docstr: Interface to the Stanford Segmenter
  
  If stanford-segmenter version is older than 2016-10-31, then path_to_slf4j
  should be provieded, for example::
  
      seg = StanfordSegmenter(path_to_slf4j='/YOUR_PATH/slf4j-api.jar')
  
  >>> from nltk.tokenize.stanford_segmenter import StanfordSegmenter
  >>> seg = StanfordSegmenter() # doctest: +SKIP
  >>> seg.default_config('zh') # doctest: +SKIP
  >>> sent = u'这是斯坦福中文分词器测试'
  >>> print(seg.segment(sent)) # doctest: +SKIP
  这 是 斯坦福 中文 分词器 测试
  <BLANKLINE>
  >>> seg.default_config('ar') # doctest: +SKIP
  >>> sent = u'هذا هو تصنيف ستانفورد العربي للكلمات'
  >>> print(seg.segment(sent.split())) # doctest: +SKIP
  هذا هو تصنيف ستانفورد العربي ل الكلمات
  <BLANKLINE>
code: def segment_file(self, input_file_path):
      """ """
      cmd = [
          self._java_class,
          "-loadClassifier",
          self._model,
          "-keepAllWhitespaces",
          self._keep_whitespaces,
          "-textFile",
          input_file_path,
      ]
      if self._sihan_corpora_dict is not None:
          cmd.extend(
              [
                  "-serDictionary",
                  self._dict,
                  "-sighanCorporaDict",
                  self._sihan_corpora_dict,
                  "-sighanPostProcessing",
                  self._sihan_post_processing,
              ]
          )
  
      stdout = self._execute(cmd)
  
      return stdout
  
file_path: nltk/nltk/tokenize/stanford_segmenter.py
imports: import json
  import os
  import tempfile
  import warnings
  from subprocess import PIPE
  from nltk.internals import _java_options, config_java, find_dir, find_file, find_jar, java
  from nltk.tokenize.api import TokenizerI
label_desc: Use image node_id 4 for calling the StanfordSegmenter obj's underlying member method code with example usage: obj.segment_file(input_file_path) and returns: stdout