old_contents: # _*_coding:utf-8_*_
  
  from stanfordcorenlp import StanfordCoreNLP
  
  # Simple usage
  nlp = StanfordCoreNLP(r'G:/JavaLibraries/stanford-corenlp-full-2016-10-31/', quiet=False)
  
  sentence = 'Guangdong University of Foreign Studies is located in Guangzhou.'
  print 'Tokenize:', nlp.word_tokenize(sentence)
  print 'Part of Speech:', nlp.pos_tag(sentence)
  print 'Named Entities:', nlp.ner(sentence)
  print 'Constituency Parsing:', nlp.parse(sentence)
  print 'Dependency Parsing:', nlp.dependency_parse(sentence)
  
  exit(0)
  
  # Other human languages support, e.g. Chinese
  nlp = StanfordCoreNLP(r'G:/JavaLibraries/stanford-corenlp-full-2016-10-31/',
                        lang='zh')
  
  sentence = '清华大学位于北京。'
  print nlp.word_tokenize(sentence)
  print nlp.pos_tag(sentence)
  print nlp.ner(sentence)
  print nlp.parse(sentence)
  print nlp.dependency_parse(sentence)
  
  # General Stanford CoreNLP API
  print nlp.annotate(sentence)
  
  text = 'Guangdong University of Foreign Studies is located in Guangzhou. ' \
         'GDUFS is active in a full range of international cooperation and exchanges in education. '
  print nlp.annotate(text,
                     properties={'annotators': 'tokenize,ssplit,pos', 'pinelineLanguage': 'en', 'outputFormat': 'xml'})
  
  # Use an existing server
  nlp = StanfordCoreNLP('http://corenlp.run', port=80)
  
new_contents: # _*_coding:utf-8_*_
  
  from stanfordcorenlp import StanfordCoreNLP
  
  # Simple usage
  nlp = StanfordCoreNLP(r'G:/JavaLibraries/stanford-corenlp-full-2016-10-31/')
  
  sentence = 'Guangdong University of Foreign Studies is located in Guangzhou.'
  print 'Tokenize:', nlp.word_tokenize(sentence)
  print 'Part of Speech:', nlp.pos_tag(sentence)
  print 'Named Entities:', nlp.ner(sentence)
  print 'Constituency Parsing:', nlp.parse(sentence)
  print 'Dependency Parsing:', nlp.dependency_parse(sentence)
  
  exit(0)
  
  # Other human languages support, e.g. Chinese
  nlp = StanfordCoreNLP(r'G:/JavaLibraries/stanford-corenlp-full-2016-10-31/',
                        lang='zh')
  
  sentence = '清华大学位于北京。'
  print nlp.word_tokenize(sentence)
  print nlp.pos_tag(sentence)
  print nlp.ner(sentence)
  print nlp.parse(sentence)
  print nlp.dependency_parse(sentence)
  
  # General Stanford CoreNLP API
  print nlp.annotate(sentence)
  
  text = 'Guangdong University of Foreign Studies is located in Guangzhou. ' \
         'GDUFS is active in a full range of international cooperation and exchanges in education. '
  print nlp.annotate(text,
                     properties={'annotators': 'tokenize,ssplit,pos', 'pinelineLanguage': 'en', 'outputFormat': 'xml'})
  
  # Use an existing server
  nlp = StanfordCoreNLP('http://corenlp.run', port=80)
  
subject: update test.py