次の方法で共有


DocumentSpan クラス

プロパティのコンテンツの連続した領域。オフセットと長さとして指定されます。

継承
builtins.object
DocumentSpan

コンストラクター

DocumentSpan(**kwargs: Any)

メソッド

from_dict

DocumentSpan の図形のディクテーションをモデル自体に変換します。

to_dict

DocumentSpan の dict 表現を返します。

from_dict

DocumentSpan の図形のディクテーションをモデル自体に変換します。

from_dict(data: Dict) -> DocumentSpan

パラメーター

名前 説明
data
必須

DocumentSpan の図形の辞書。

戻り値

説明

DocumentSpan

to_dict

DocumentSpan の dict 表現を返します。

to_dict() -> Dict

戻り値

説明

dict

属性

length

スパンで表されるコンテンツ内の文字数。

length: int

offset

スパンで表されるコンテンツの 0 から始まるインデックス。

offset: int