> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/curator/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/curator/_mcp/server.

# nemo_curator.stages.text.modifiers.string.line_remover

## Module Contents

### Classes

| Name                                                                                 | Description                                                                      |
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| [`LineRemover`](#nemo_curator-stages-text-modifiers-string-line_remover-LineRemover) | Removes lines from a document if the content of the line matches a given string. |

### API

```python
class nemo_curator.stages.text.modifiers.string.line_remover.LineRemover(
    patterns: list[str]
)
```

**Bases:** [DocumentModifier](/nemo-curator/nemo_curator/stages/text/modifiers/doc_modifier#nemo_curator-stages-text-modifiers-doc_modifier-DocumentModifier)

Removes lines from a document if the content of the line matches a given string.

```python
nemo_curator.stages.text.modifiers.string.line_remover.LineRemover.modify_document(
    text: str
) -> str
```