# Module 3: Text extraction for search and analysis

In this module we'll cover the following:

* Why extracting text is important
* The basics of extracting text
* Extracting text for specific document portions or provisions (eg. chapters, sections)

We will use:

* Python and the [lxml](https://lxml.de/) XML library

The full code for this module is available on Google Colab: <https://colab.research.google.com/drive/1BEPG5abvOKoCB5zmHWDUBNNPIof1cE0M>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.laws.africa/tutorial/module-3-text-extraction-for-search-and-analysis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
