Skip to content
Snippets Groups Projects
Unverified Commit c592a0e0 authored by James Briggs's avatar James Briggs
Browse files

chore: update message and stacklevel

parent a5a29c29
No related branches found
No related tags found
No related merge requests found
......@@ -21,9 +21,10 @@ class ConsecutiveSimSplitter(BaseSplitter):
):
warn(
"Splitters are being deprecated. They have moved to their own "
"package. Please install the `semantic-chunkers` package. More "
"package. Please migrate to the `semantic-chunkers` package. More "
"information can be found at:\n"
"https://github.com/aurelio-ai/semantic-chunkers"
"https://github.com/aurelio-ai/semantic-chunkers",
stacklevel=2,
)
super().__init__(name=name, encoder=encoder)
encoder.score_threshold = score_threshold
......
......@@ -22,9 +22,10 @@ class CumulativeSimSplitter(BaseSplitter):
):
warn(
"Splitters are being deprecated. They have moved to their own "
"package. Please install the `semantic-chunkers` package. More "
"package. Please migrate to the `semantic-chunkers` package. More "
"information can be found at:\n"
"https://github.com/aurelio-ai/semantic-chunkers"
"https://github.com/aurelio-ai/semantic-chunkers",
stacklevel=2,
)
super().__init__(name=name, encoder=encoder)
encoder.score_threshold = score_threshold
......
......@@ -52,9 +52,10 @@ class RollingWindowSplitter(BaseSplitter):
):
warn(
"Splitters are being deprecated. They have moved to their own "
"package. Please install the `semantic-chunkers` package. More "
"package. Please migrate to the `semantic-chunkers` package. More "
"information can be found at:\n"
"https://github.com/aurelio-ai/semantic-chunkers"
"https://github.com/aurelio-ai/semantic-chunkers",
stacklevel=2,
)
super().__init__(name=name, encoder=encoder)
self.calculated_threshold: float
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment