class_docstr: Ernie_skep_sentiment_analysis module is initialize with enie_1.0_chn_large when pretraining.
  This module is finetuned on ChnSentiCorp dataset to do sentiment claasification.
  It can do sentiment analysis prediction directly, label as positive or negative.
class_docstr_tok: ["Ernie_skep_sentiment_analysis","module","is","initialize","with","enie_1.0_chn_large","when","pretraining",".","This","module","is","finetuned","on","ChnSentiCorp","dataset","to","do","sentiment","claasification",".","It","can","do","sentiment","analysis","prediction","directly",",","label","as","positive","or","negative","."]
docstr: predictor config setting
docstr_tok: ["predictor","config","setting"]
code: def _set_config(self):
      """
      predictor config setting
      """
      model_file_path = os.path.join(self.infer_model_path, "model")
      params_file_path = os.path.join(self.infer_model_path, "params")
  
      config = core.AnalysisConfig(model_file_path, params_file_path)
      try:
          _places = os.environ["CUDA_VISIBLE_DEVICES"]
          int(_places[0])
          use_gpu = True
      except:
          use_gpu = False
  
      if use_gpu:
          config.enable_use_gpu(8000, 0)
      else:
          config.disable_gpu()
  
      config.disable_glog_info()
  
      self.predictor = core.create_paddle_predictor(config)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import ast
  import os
  import numpy
  from ernie_skep_sentiment_analysis.model.ernie import ErnieConfig
  from paddle.framework import core
  from paddlehub import TransformerModule
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
  from paddlehub.reader.batching import pad_batch_data
  from paddlehub.reader.tokenization import convert_to_unicode
  from paddlehub.reader.tokenization import FullTokenizer
label_desc: Use image node_id 2 for calling the ErnieSkepSentimentAnalysis obj's underlying member method code with example usage: obj._set_config() without return types