elm.ords.extraction.apply.extract_ordinance_values

async extract_ordinance_values(doc, **kwargs)[source]

Extract ordinance values for a single document with known ord text.

Parameters:
  • doc (elm.web.document.BaseDocument) – A document known to contain ordinance text. This means it must contain an "cleaned_ordinance_text" key in the metadata. You can run extract_ordinance_text_with_llm() to have this attribute populated automatically for documents that are found to contain ordinance data. Note that if the document’s metadata does not contain the "cleaned_ordinance_text" key, it will not be processed.

  • **kwargs – Keyword-value pairs used to initialize an elm.ords.llm.LLMCaller instance.

Returns:

elm.web.document.BaseDocument – Document that has been parsed for ordinance values. The results of the extraction are stored in the document’s metadata. In particular, the metadata will contain an "ordinance_values" key that will contain the DataFame with ordinance values.