Layer
linpipe.Layer
Bases: object
A base class of all LinPipe layers.
A layer holds one kind of annotation of a document, for example its plain text. Its data can be accessed through views, created by Layer.create_view.
create
staticmethod
create_from_json
staticmethod
create_view
Create a view of the layer matching the given selectors.
The view refers to the layer, so the layer must outlive it.
Parameters:
-
selectors(str) –colon-separated
key=valueorvalueselectors, where a missing key meanstype; a literal colon is written as::.
Returns:
-
View–the unique view of the layer matching all the selectors.
timestamp
instance-attribute
timestamp: str
The creation time of the layer as an ISO 8601 date-time in UTC, e.g., 2026-01-01T12:00:00Z.