fix_service
Service layer implementation for TextProc/Fix.
Classes
FixFormattingService
Bases: BaseService
Service for fixing formatting of text files.
Attributes
chain_service
instance-attribute
chain_service = ChainService(
sa_session=sa_session, neo4j_session=nj_session
)
Functions
fix
fix(
input_file: str,
profile: str = "textproc_fix_formatting_generic",
additional_user_info: str | None = None,
output_dir: str | None = None,
task_id: str | None = None,
trace_id: str | None = None,
trace_tags: List[str] | None = None,
) -> None
Fix the formatting of a text file based on the specified profile.
Parameters:
-
input_file(str) –The path to the input file to be processed.
-
profile(str, default:'textproc_fix_formatting_generic') –The profile to use for formatting.
-
additional_user_info(str | None, default:None) –Additional information provided by the user.
-
output_dir(str | None, default:None) –The directory to save the output file.
-
task_id(str | None, default:None) –The ID of the task.
-
trace_id(str | None, default:None) –The trace ID for tracking.
-
trace_tags(List[str] | None, default:None) –Tags for tracing.
Raises:
-
ServiceError–If an error occurs during processing.