Loading tagthunder/api/routers/services.py +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ class AlgorithmServices: def augmentation(cls, url: [HttpUrl], algorithm_name: str, parameters) -> Optional[schemas.HTMLP]: algorithm = cls.get_algorithm("augmentation", algorithm_name, **parameters) htmlp = algorithm(url) print(htmlp) return factories.Responses.HTMLP(htmlp) @classmethod Loading tagthunder/pipeline/blocks/cleaning/vision_based.py +3 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,9 @@ from pipeline.models.web_elements import HTMLPTag class VisionBased(AbstractCleaningBlock): USELESS_TAGS = ["title", "link", "script", "noscript", "style", "doctype", "head", "base", "command", "meta", "br"] #USELESS_TAGS = ["title", "link", "script", "noscript", "style", "doctype", "head", "base", "command", "meta", "br"] USELESS_TAGS = [] def config(self, **kwargs): pass Loading Loading
tagthunder/api/routers/services.py +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ class AlgorithmServices: def augmentation(cls, url: [HttpUrl], algorithm_name: str, parameters) -> Optional[schemas.HTMLP]: algorithm = cls.get_algorithm("augmentation", algorithm_name, **parameters) htmlp = algorithm(url) print(htmlp) return factories.Responses.HTMLP(htmlp) @classmethod Loading
tagthunder/pipeline/blocks/cleaning/vision_based.py +3 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,9 @@ from pipeline.models.web_elements import HTMLPTag class VisionBased(AbstractCleaningBlock): USELESS_TAGS = ["title", "link", "script", "noscript", "style", "doctype", "head", "base", "command", "meta", "br"] #USELESS_TAGS = ["title", "link", "script", "noscript", "style", "doctype", "head", "base", "command", "meta", "br"] USELESS_TAGS = [] def config(self, **kwargs): pass Loading