Skip to content

Commit

Permalink
fix: pipeline.transform instead of fit_transform
Browse files Browse the repository at this point in the history
  • Loading branch information
julesbertrand committed Feb 6, 2023
1 parent 368ed6a commit 5b56b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nlpretext/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ def run(self, text: str) -> str:
{"operation": operation, "args": None} for operation in operations_to_pipe
]
self.pipeline = self.build_pipeline(operations)
text = self.pipeline.fit_transform(text)
text = self.pipeline.transform(text)
return text

0 comments on commit 5b56b96

Please sign in to comment.