Skip to content

Instantly share code, notes, and snippets.

View manliu1225's full-sized avatar

LIU Man manliu1225

  • Singapore
View GitHub Profile
def cut_sentence_new(words):
words = (words).decode('utf8')
start = 0
i = 0
sents = []
# print words
token = list(words[start:i+2]).pop()
punt_list = '.!?;~。!?;~'.decode('utf8')
for word in words:
if word in punt_list and token not in punt_list:
@manliu1225
manliu1225 / 0_reuse_code.js
Created July 6, 2017 09:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console