💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Ignore formatting for statement
davidmezzettic4302d23017b
diff --git a/src/python/txtai/tokenizer.py b/src/python/txtai/tokenizer.pyindex 00db5568..45024c21 100644--- a/src/python/txtai/tokenizer.py+++ b/src/python/txtai/tokenizer.py@@ -11,44 +11,12 @@ class Tokenizer:Text tokenization methods."""- # fmt off+ # fmt: off# English Stop Word List (Standard stop words used by Apache Lucene)- STOP_WORDS = {- "a",- "an",- "and",- "are",- "as",- "at",- "be",- "but",- "by",- "for",- "if",- "in",- "into",- "is",- "it",- "no",- "not",- "of",- "on",- "or",- "such",- "that",- "the",- "their",- "then",- "there",- "these",- "they",- "this",- "to",- "was",- "will",- "with",- }- # fmt on+ STOP_WORDS = {"a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it",+ "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these",+ "they", "this", "to", "was", "will", "with"}+ # fmt: on@staticmethoddef tokenize(text):