Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Ignore formatting for statement

davidmezzettic4302d23017b
diff --git a/src/python/txtai/tokenizer.py b/src/python/txtai/tokenizer.py
index 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
@staticmethod
def tokenize(text):