**
对excel文件中的英文文本内容进行词性分析
**
#导入库
import xlrd
import nltk
import numpy as np
import pandas as pd
import os
from nltk.parse.stanford import StanfordParser
#读入文件
List1 = {}
data = xlrd.open_workbook(u'D://123.xlsx', encoding_override='utf-8') #双斜杠//是必须的
table = data.sheets()[0] #选定表
nrows = table.nrows #获取行号
ncols = table.ncols #获取列号
print(nrows)
print(ncols)
#环境配置
java_path = "D:/Program Files/Java/jdk-17.0.1/bin/java.exe" #电脑上java的安装路径
os.environ['JAVAHOME'] = java_path
eng_parser = StanfordParser(r"D:\stanford-parser-full-2017-06-09\stanford-parser-full-2017-06-09\stanfordNLP\stanford-parser.jar",r"D:\stanford-parser-full-2017-06-09\stanford-parser-full-2017-06-09\stanfordNLP\stanford-parser-3.8.0-models.jar",r"D:\stanford-parser-full-2017-06-09\