def __init__(self, model_filename, path_to_jar=None, encoding='utf8', verbose=False, java_options='-mx1000m'):
    if (not self._JAR):
        warnings.warn('The StanfordTagger class is not meant to be instantiated directly. Did you mean StanfordPOSTagger or StanfordNERTagger?')
    self._stanford_jar = find_jar(self._JAR, path_to_jar, searchpath=(), url=_stanford_url, verbose=verbose)
    self._stanford_model = find_file(model_filename, env_vars=('STANFORD_MODELS',), verbose=verbose)
    stanford_dir = os.path.split(self._stanford_jar)[0]
    self._stanford_jar = tuple(find_jars_within_path(stanford_dir))
    self._encoding = encoding
    self.java_options = java_options
def __init__(self, model_filename, path_to_jar=None, encoding='utf8', verbose=False, java_options='-mx1000m'):
    if (not self._JAR):
        warnings.warn('The StanfordTagger class is not meant to be instantiated directly. Did you mean StanfordPOSTagger or StanfordNERTagger?')
    self._stanford_jar = find_jar(self._JAR, path_to_jar, searchpath=(), url=_stanford_url, verbose=verbose)
    self._stanford_model = find_file(model_filename, env_vars=('STANFORD_MODELS',), verbose=verbose)
    stanford_dir = os.path.split(self._stanford_jar)[0]
    self._stanford_jar = tuple(find_jars_within_path(stanford_dir))
    self._encoding = encoding
    self.java_options = java_options