# encoding:utf-8
import re
import string
import pandas as pd
# from ltp_parser import ltp_parser
# from ltp_parser2 import ltp_parser2
from ltp_parser3 import ltp_parser3
df = pd.read_excel('excel/a1.xlsx')
t = df.content.tolist()
u = []
for a in t:
    a = str(a)
    a = a.encode('utf8')
    a = re.sub(r'\s+',' ',a) # trans多空格to空格
    a = re.sub(r'\n',' ',a) # trans换行to空格
    a = re.sub(r'\t',' ',a) # trans Tab to空格
    a = a.strip(string.punctuation)
    a = a.strip()
    if '。' not in a or not a.endswith('。'):
        a = a + '。'
    u.append(a)
spliter = ltp_parser3(u)
df['stopMove'] = spliter
writer = pd.ExcelWriter('excel/d1.xlsx')
df.to_excel(writer,'sheet1')
writer.save()
38c2c11bc8c05a3ebfb1e501b6e0bb91dd5ce2ed
<mask token>

<mask token>
for a in t:
    a = str(a)
    a = a.encode('utf8')
    a = re.sub('\\s+', ' ', a)
    a = re.sub('\\n', ' ', a)
    a = re.sub('\\t', ' ', a)
    a = a.strip(string.punctuation)
    a = a.strip()
    if '。' not in a or not a.endswith('。'):
        a = a + '。'
    u.append(a)
<mask token>
df.to_excel(writer, 'sheet1')
writer.save()

<mask token>
df = pd.read_excel('excel/a1.xlsx')
t = df.content.tolist()
u = []
for a in t:
    a = str(a)
    a = a.encode('utf8')
    a = re.sub('\\s+', ' ', a)
    a = re.sub('\\n', ' ', a)
    a = re.sub('\\t', ' ', a)
    a = a.strip(string.punctuation)
    a = a.strip()
    if '。' not in a or not a.endswith('。'):
        a = a + '。'
    u.append(a)
spliter = ltp_parser3(u)
df['stopMove'] = spliter
writer = pd.ExcelWriter('excel/d1.xlsx')
df.to_excel(writer, 'sheet1')
writer.save()

import re
import string
import pandas as pd
from ltp_parser3 import ltp_parser3
df = pd.read_excel('excel/a1.xlsx')
t = df.content.tolist()
u = []
for a in t:
    a = str(a)
    a = a.encode('utf8')
    a = re.sub('\\s+', ' ', a)
    a = re.sub('\\n', ' ', a)
    a = re.sub('\\t', ' ', a)
    a = a.strip(string.punctuation)
    a = a.strip()
    if '。' not in a or not a.endswith('。'):
        a = a + '。'
    u.append(a)
spliter = ltp_parser3(u)
df['stopMove'] = spliter
writer = pd.ExcelWriter('excel/d1.xlsx')
df.to_excel(writer, 'sheet1')
writer.save()

# encoding:utf-8
import re
import string
import pandas as pd
# from ltp_parser import ltp_parser
# from ltp_parser2 import ltp_parser2
from ltp_parser3 import ltp_parser3
df = pd.read_excel('excel/a1.xlsx')
t = df.content.tolist()
u = []
for a in t:
    a = str(a)
    a = a.encode('utf8')
    a = re.sub(r'\s+',' ',a) # trans多空格to空格
    a = re.sub(r'\n',' ',a) # trans换行to空格
    a = re.sub(r'\t',' ',a) # trans Tab to空格
    a = a.strip(string.punctuation)
    a = a.strip()
    if '。' not in a or not a.endswith('。'):
        a = a + '。'
    u.append(a)
spliter = ltp_parser3(u)
df['stopMove'] = spliter
writer = pd.ExcelWriter('excel/d1.xlsx')
df.to_excel(writer,'sheet1')
writer.save()