Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
9bow committed Jun 8, 2020
2 parents 8935069 + 05bfb4e commit fa1bb25
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 78 deletions.
1 change: 0 additions & 1 deletion beginner_source/chatbot_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ def filterPairs(pairs):
return [pair for pair in pairs if filterPair(pair)]

# ์•ž์—์„œ ์ •์˜ํ•œ ํ•จ์ˆ˜๋ฅผ ์ด์šฉํ•˜์—ฌ ๋งŒ๋“  voc ๊ฐ์ฒด์™€ ๋ฆฌ์ŠคํŠธ pairs๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค
Using the functions defined above, return a populated voc object and pairs list
def loadPrepareData(corpus, corpus_name, datafile, save_dir):
print("Start preparing training data ...")
voc, pairs = readVocs(datafile, corpus_name)
Expand Down
Loading

0 comments on commit fa1bb25

Please sign in to comment.