08 2020 档案
摘要:split_part(channel, '/', 1) AS channel1 , split_part(channel, '/', 2) AS channel2 , split_part(channel, '/', 3) AS channnel3 分完之后的结果 是这个样子
阅读全文
摘要:需求 : tid :帖子的id sentence num:句子在帖子中的编号 wordindex:分好的每个词 在帖子中的位置 channel :这条帖子的关键词 要求 计算word 在每一句中 与channel的词距 ,若词距绝对值小于三 则 word 和channel 标签为关联 若关联数 /出
阅读全文
摘要:直接看代码: import psycopg2 import pandas as pd import jieba import numpy as np import xlwt def fenci (text): seg_list = jieba.cut(text) return "|".join(se
阅读全文
浙公网安备 33010602011771号