{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"ロケーションデータを使用してスニペットの場所を特定する","projectTitle":"Tisane Developer Documentation","description":"Tisane is an NLP platform, used for content moderation & more.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"ロケーションデータを使用してスニペットの場所を特定する","__idx":0},"children":["ロケーションデータを使用してスニペットの場所を特定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tisaneは、フラグが付けられたテキストフラグメントを特定するのに役立つ、構造化されたロケーションデータを提供します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["主な3つのロケーション属性は以下の通りです。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sentence_index"]}," : スニペットを含む文章のゼロベースのインデックス。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["offset"]},": 文章中のスニペットの最初の文字のゼロベースの位置。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["length"]}," : スニペットの文字数。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"文字列の入手方法","__idx":1},"children":["文字列の入手方法"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スニペットを含む文章を見つける：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sentence_list"]},"ノードに移動する。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["index"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sentence_index"]},"のノードを選択する。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["あるいは、文章リストの配列から文章を直接取得する。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["サブストリングを取得する：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["offset"]},"と",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["length"]},"の値を使用して、文章からサブストリングを取得する。"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"絶対位置ではなく相対オフセットである理由","__idx":2},"children":["絶対位置ではなく相対オフセットである理由"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["当社は、絶対的なオフセットではなく文章ベースのインデックスを使用しています。これは、多くのユーザーがコンテキストのためにスニペットのある実際の文章を必要とするからです。"]}]},"headings":[{"value":"ロケーションデータを使用してスニペットの場所を特定する","id":"ロケーションデータを使用してスニペットの場所を特定する","depth":1},{"value":"文字列の入手方法","id":"文字列の入手方法","depth":2},{"value":"絶対位置ではなく相対オフセットである理由","id":"絶対位置ではなく相対オフセットである理由","depth":2}],"frontmatter":{"seo":{"title":"ロケーションデータを使用してスニペットの場所を特定する"}},"lastModified":"2025-06-30T05:16:22.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/guides/how-tos/locateasnippet","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}