src.dackar.workflows.WorkflowManager¶
Created on August 1, 2025 @author: wangc, mandd
Attributes¶
Classes¶
Workflow Manager |
Module Contents¶
- class src.dackar.workflows.WorkflowManager.WorkflowManager(config)[source]¶
Workflow Manager
- write(data, fname, style='csv')[source]¶
Dump data
- Parameters:
data (pandas.DataFrame) – output data to dump
fname (str) – file name to save the data
style (str, optional) – type of file. Defaults to ‘csv’.
- visualize(doc)[source]¶
visual entities
- Parameters:
doc (spacy.tokens.doc.Doc) – the processed document using nlp pipelines
- _validate(config)[source]¶
validate dackar input file using JSON schema
- Parameters:
config (dict) – dictionary for dackar input
- Raises:
IOError – error out if not valid
- generatePattern(config)[source]¶
Generate patterns using provided OPM and/or entity file
- Parameters:
config (dict) – input dictionary
- Returns:
list of patterns will be used by entity matcher
- Return type:
list
- processCausalEnt()[source]¶
Parse causal keywords, and generate patterns for them The patterns can be used to identify the causal relationships
- Returns:
list of patterns will be used by causal entity matcher
- Return type:
list