TextGrapher icon indicating copy to clipboard operation
TextGrapher copied to clipboard

乱码问题

Open fengheyiyi opened this issue 5 years ago • 3 comments

为什么我加载模型

进去分析出来的grow_show都是乱码。 模型加载如下: LTP_DIR = r"C:\Users\ling\Downloads\semantics\ltp_data_v3.4.0\ltp_data_v3.4.0" 乱码如下:

fengheyiyi avatar Nov 27 '19 04:11 fengheyiyi

GraphShow.py里面有一个utf-8改成gbk

usingnamespacestc avatar Jun 11 '20 12:06 usingnamespacestc

为什么我加载模型

进去分析出来的grow_show都是乱码。 模型加载如下: LTP_DIR = r"C:\Users\ling\Downloads\semantics\ltp_data_v3.4.0\ltp_data_v3.4.0" 乱码如下:

编码问题,改成gbk就能解决了

usingnamespacestc avatar Jun 11 '20 12:06 usingnamespacestc

为什么我加载模型

进去分析出来的grow_show都是乱码。 模型加载如下: LTP_DIR = r"C:\Users\ling\Downloads\semantics\ltp_data_v3.4.0\ltp_data_v3.4.0" 乱码如下:

  • 生成html页面的地方 指定编码方式也能解决 f = open('graph_show.html', 'w+', encoding='utf-8')

Waym1ng avatar Nov 11 '20 06:11 Waym1ng