src.use#

Module Contents#

Classes#

Use

Attributes#

UseID

src.use.UseID: TypeAlias#
class src.use.Use#

Bases: pydantic.BaseModel

identifier: UseID#
grouping: str#
context: str#
target: str#
indices: tuple[int, int]#
pos: str#
classmethod from_series(use: pandas.Series) Use#

Return one use from type series with specific columns. The use is the Series includes the folloing columns: lemma, pos, grouping, identifier, context_prepeocessed, target_index_begin, and target_index_end.

Parameters:

use (Series) – use

Returns:

Use object with specific columns.

Return type:

Use

__hash__() int#

Called by built-in function hash() and for operations on members of hashed collections.

Returns:

The hash value of identifier of the Use.

Return type:

int

__lt__(other: Use) bool#

Compare the value of the identifier of self.use and the value of the identifier of other use.

Parameters:

other (Use) – The use to be compared.

Returns:

Return Ture if the value of the identifier of self.use is less than the value of the identifier of

other use. :rtype: bool