Created
July 9, 2016 12:59
-
-
Save EastResident/16117ff42b9aabf895b479a0ab733493 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main | |
count = 0 | |
uniq_list = [] | |
f = open('write', 'w') | |
open_each_ss('parsed_mobamasu_kai') do |row| | |
array = row.strip.split(' ') | |
array.uniq.each do |word| | |
if !uniq_list.include?(word) | |
uniq_list << word | |
end | |
end | |
count += 1 | |
p count | |
end | |
f.write uniq_list.join(' ') | |
f.close | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment