Barrier
Bases: BaseModel
A text barrier that consists of one or more tokens.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
The title of the barrier. |
required |
category
|
BarrierCategorization
|
The category of the barrier; the set of barrier categories is language-specific. |
required |
description
|
str
|
A short description of how the barriere impedes text comprehension. |
required |
suggested_improvement
|
str
|
How best to resolve the type of the given barrier. |
required |
affected_tokens
|
list[TokenProtocol] | None
|
The tokens in a given text that are part of the barrier. |
None
|
Source code in src/limes/models.py
copy_with(affected_tokens)
Create a deep copy of the Barrier instance and optionally overwrite 'affected_tokens'.