Skip to content

Commit

Permalink
change path
Browse files Browse the repository at this point in the history
  • Loading branch information
TianFengshou authored Dec 25, 2017
1 parent 9de0415 commit f1a712d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/wordcloud_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@

d = path.dirname(__file__)

stopwords_path = d + '/stopwords/CNENstopwords.txt'
font_path = d + '/Fonts/simkai.ttf'
stopwords_path = d + '/CNENstopwords.txt'
font_path = d + '/simkai.ttf'

# the path to save worldcloud
imgname1 = d + '/WordCloudDefautColors.png'
imgname2 = d + '/WordCloudColorsByImg.png'
# read the mask / color image taken from
back_coloring = imread(path.join(d, d + '/img/DragonRaja.jpg'))
back_coloring = imread(path.join(d, d + '/DragonRaja.jpg'))

# Read the whole text.
text = open(path.join(d, d + '/txt/DragonRaja.txt')).read()
text = open(path.join(d, d + '/DragonRaja.txt')).read()

# if you want use wordCloud,you need it
# add userdict by add_word()
Expand Down

0 comments on commit f1a712d

Please sign in to comment.