From fd90e07ed229284a9d0445f5a528678c77ae0f8d Mon Sep 17 00:00:00 2001 From: Yohei Tamura Date: Mon, 19 Jul 2021 18:11:36 +0900 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ba6002a..e09dc81 100644 --- a/README.md +++ b/README.md @@ -79,9 +79,11 @@ def lift_span_index(span: Tuple[int, int], target_spans: List[Tuple[int, int]]) Examples: +```python >>> import textspan >>> spans = [(0, 3), (3, 4), (4, 9), (9, 12)] >>> assert textspan.lift_spans_index((2, 10), spans) == (0, 4) +``` ### `lift_spans_index`