This file contains hidden or 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
class Beer | |
def self.song | |
array=(1..99).to_a.reverse | |
array.each do |a| | |
if a==1 | |
puts "No bottles of beer on the wall, no bottles of beer.\nTake one down and pass it around, 99 bottles of beer on the wall" | |
This file contains hidden or 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
class Beer | |
def self.song | |
array=(1..99).to_a.reverse | |
array.each do |a| | |
if a==1 | |
puts "No bottles of beer on the wall, no bottles of beer.\nTake one down and pass it around, 99 bottles of beer on the wall" | |
This file contains hidden or 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 token_stemming(tokens, suffixes): | |
suffixes.sort(key=len,reverse=True) | |
for token in tokens: | |
counter=0 | |
for suffix in suffixes: | |
if token[(len(token)-len(suffix)): ]==suffix: | |
print token[:(len(token)-len(suffix))] | |
break | |
else : | |
counter+=1 |
This file contains hidden or 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 token_stemming(tokens, suffixes): | |
suffixes.sort(key=len,reverse=True) | |
for token in tokens: | |
counter=0 | |
for suffix in suffixes: | |
if token[(len(token)-len(suffix)): ]==suffix: | |
print token[:(len(token)-len(suffix))] | |
break | |
else : | |
counter+=1 |
This file contains hidden or 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 remove_all_similar_words(array, word): | |
new_array=[] | |
for i in range(0,len(array)): | |
if array[i] !=word : | |
new_array.append(array[i]) | |
return new_array | |
def remove_stopwords(query, stopwords): | |
for search in stopwords: | |
for word in query: |
This file contains hidden or 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
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6 | |
Build date: 2016-08-02 18:54:22 |
This file contains hidden or 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
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6 | |
Build date: 2016-08-04 02:34:46 |
This file contains hidden or 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
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6 | |
Build date: 2016-08-04 14:25:56 |
This file contains hidden or 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
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6 | |
Build date: 2016-08-04 15:03:05 |
This file contains hidden or 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
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6 | |
Build date: 2016-08-04 19:23:04 |
OlderNewer