Cursor | Extractor

extractor = CursorExtractor(schema) for log_file in Path("data/raw/logs").glob("*.log"): content = log_file.read_text() extractor.extract_from_text(content, str(log_file))

def __init__(self, schema: Dict[str, str]): self.schema = schema # field -> regex pattern self.results = [] Cursor Extractor

inside Cursor Composer today: “Extract all email addresses and dates from the selected text. Output JSON.” str(log_file)) def __init__(self

That’s your first extraction. From there, build your own extractor library. build your own extractor library.