From b0b8b396a7194355e91684c1051cdda701bf9c08 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Fri, 9 Feb 2024 13:44:20 -0800 Subject: [PATCH] More silliness --- adserver/analyzer/backends/base.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/adserver/analyzer/backends/base.py b/adserver/analyzer/backends/base.py index def3fc40..79837c3d 100644 --- a/adserver/analyzer/backends/base.py +++ b/adserver/analyzer/backends/base.py @@ -11,7 +11,6 @@ class BaseAnalyzerBackend: - """Base class that all analyzers should extend.""" # CSS selectors to select the "main" content of the page @@ -112,7 +111,7 @@ def analyze_response(self, resp): Analyze an HTTP resp and return keywords/topics for the URL. This will only be passed a successful resp (20x). - All resps should return a list of keywords even if that list is empty. + All responses should return a list of keywords even if that list is empty. This needs to be defined by subclasses. """ @@ -120,10 +119,10 @@ def analyze_response(self, resp): def embed_response(self, resp): """ - Analyze an HTTP resp and return an embedding for the URL. + Analyze an HTTP response and return an embedding for the URL. - This will only be passed a successful resp (20x). - All resps should return a vector even if that list is empty. + This will only be passed a successful response (20x). + All responses should return a vector even if that list is empty. """ log.warning("No embedding configured for %s", self.__class__.__name__) return []