예제 #1
0
 def test_symbol_percentage(self):
     analyzer = TextAnalyzer()
     text = "asd% Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #2
0
 def test_symbol_upper_interrogation(self):
     analyzer = TextAnalyzer()
     text = "asd? Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #3
0
 def test_symbol_upper_exclamation(self):
     analyzer = TextAnalyzer()
     text = "asd! Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #4
0
 def test_string_stopword_string(self):
     analyzer = TextAnalyzer()
     text = "asd upon asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #5
0
 def test_symbol_low_bar(self):
     analyzer = TextAnalyzer()
     text = "asd_ Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #6
0
 def test_string_lower_string_capitalized(self):
     analyzer = TextAnalyzer()
     text = "asd ASD"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #7
0
 def test_symbol_almohadilla(self):
     analyzer = TextAnalyzer()
     text = "asd# Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #8
0
 def test_symbol_slash(self):
     analyzer = TextAnalyzer()
     text = "asd/ Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #9
0
 def test_symbol_arroba(self):
     analyzer = TextAnalyzer()
     text = "asd@ Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #10
0
 def test_symbol_doc_and_coma(self):
     analyzer = TextAnalyzer()
     text = "asd; Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #11
0
 def test_symbol_double_points(self):
     analyzer = TextAnalyzer()
     text = "asd: Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #12
0
 def test_symbol_coma(self):
     analyzer = TextAnalyzer()
     text = "asd,"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd"]
예제 #13
0
 def test_semi_capitalized_strings(self):
     analyzer = TextAnalyzer()
     text = "Asd AsD"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #14
0
 def test_symbol_numbers_between_letters(self):
     analyzer = TextAnalyzer()
     text = "as1d2As3d"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asdasd"]
예제 #15
0
 def test_symbol_numbers(self):
     analyzer = TextAnalyzer()
     text = "asd 1234asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]
예제 #16
0
 def test_symbol_parenthesis(self):
     analyzer = TextAnalyzer()
     text = "asd() Asd"
     text = TextAnalyzer.prepare_text(analyzer, text)
     assert text == ["asd", "asd"]