コード例 #1
0
ファイル: splice_test.py プロジェクト: dimidd/PSHAT
 def setup_method(self, method):
     splicer = SectionSplicer()
     splicer.set_section(Ref("Shabbat 2b"))
     splicer.set_base_version("Wikisource Talmud Bavli", "he")
     splicer.set_segment_map(Ref("Shabbat 2b:1"), Ref("Shabbat 2b:2"))
     splicer.set_segment_map(Ref("Shabbat 2b:3"), Ref("Shabbat 2b:5"))
     splicer.set_segment_map(Ref("Shabbat 2b:6"),
                             Ref("Shabbat 2b:12"),
                             end_word=2)
     splicer.set_segment_map(Ref("Shabbat 2b:12"),
                             Ref("Shabbat 2b:15"),
                             start_word=3,
                             end_word=3)
     splicer.set_segment_map(Ref("Shabbat 2b:15"),
                             Ref("Shabbat 2b:17"),
                             start_word=4)
     splicer.set_segment_map(Ref("Shabbat 2b:18"),
                             Ref("Shabbat 2b:18"),
                             end_word=3)
     splicer.set_segment_map(Ref("Shabbat 2b:18"),
                             Ref("Shabbat 2b:18"),
                             start_word=4,
                             end_word=8)
     splicer.set_segment_map(Ref("Shabbat 2b:18"),
                             Ref("Shabbat 2b:29"),
                             start_word=9)
     self.splicer = splicer
コード例 #2
0
 def setup_method(self, method):
     splicer = SectionSplicer()
     splicer.set_section(Ref("Shabbat 2b"))
     splicer.set_base_version("Wikisource Talmud Bavli", "he")
     splicer.set_segment_map(Ref("Shabbat 2b:1"), Ref("Shabbat 2b:2"))
     splicer.set_segment_map(Ref("Shabbat 2b:3"), Ref("Shabbat 2b:5"))
     splicer.set_segment_map(Ref("Shabbat 2b:6"), Ref("Shabbat 2b:12"), end_word=2)
     splicer.set_segment_map(Ref("Shabbat 2b:12"), Ref("Shabbat 2b:15"), start_word=3, end_word=3)
     splicer.set_segment_map(Ref("Shabbat 2b:15"), Ref("Shabbat 2b:17"), start_word=4)
     splicer.set_segment_map(Ref("Shabbat 2b:18"), Ref("Shabbat 2b:18"), end_word=3)
     splicer.set_segment_map(Ref("Shabbat 2b:18"), Ref("Shabbat 2b:18"), start_word=4, end_word=8)
     splicer.set_segment_map(Ref("Shabbat 2b:18"), Ref("Shabbat 2b:29"), start_word=9)
     self.splicer = splicer
コード例 #3
0
ファイル: splice_test.py プロジェクト: dimidd/PSHAT
 def setup_method(self, method):
     splicer = SectionSplicer()
     splicer.set_section(Ref("Shabbat 2b"))
     splicer.set_base_version("Wikisource Talmud Bavli", "he")
     splicer.set_segment_map(Ref("Shabbat 2b:1"), Ref("Shabbat 2b:15"))  # 0
     splicer.set_segment_map(Ref("Shabbat 2b:16"),
                             Ref("Shabbat 2b:16"),
                             end_word=3)  # 1
     splicer.set_segment_map(Ref("Shabbat 2b:16"),
                             Ref("Shabbat 2b:16"),
                             start_word=4,
                             end_word=8)  # 2
     splicer.set_segment_map(Ref("Shabbat 2b:16"),
                             Ref("Shabbat 2b:16"),
                             start_word=9,
                             end_word=9)  # 3
     splicer.set_segment_map(Ref("Shabbat 2b:16"),
                             Ref("Shabbat 2b:16"),
                             start_word=10)  # 4
     splicer.set_segment_map(Ref("Shabbat 2b:17"),
                             Ref("Shabbat 2b:17"))  # 5
     splicer.set_segment_map(Ref("Shabbat 2b:18"),
                             Ref("Shabbat 2b:19"),
                             end_word=4)  # 6
     splicer.set_segment_map(Ref("Shabbat 2b:19"),
                             Ref("Shabbat 2b:20"),
                             start_word=5)  # 7
     splicer.set_segment_map(Ref("Shabbat 2b:21"),
                             Ref("Shabbat 2b:23"),
                             end_word=2)  # 8
     splicer.set_segment_map(Ref("Shabbat 2b:23"),
                             Ref("Shabbat 2b:24"),
                             start_word=3,
                             end_word=2)  # 9
     splicer.set_segment_map(Ref("Shabbat 2b:24"),
                             Ref("Shabbat 2b:29"),
                             start_word=3)  # 10
     self.splicer = splicer
コード例 #4
0
 def setup_method(self, method):
     splicer = SectionSplicer()
     splicer.set_section(Ref("Shabbat 2b"))
     splicer.set_base_version("Wikisource Talmud Bavli", "he")
     splicer.set_segment_map(Ref("Shabbat 2b:1"), Ref("Shabbat 2b:15"))                              # 0
     splicer.set_segment_map(Ref("Shabbat 2b:16"), Ref("Shabbat 2b:16"), end_word=3)                 # 1
     splicer.set_segment_map(Ref("Shabbat 2b:16"), Ref("Shabbat 2b:16"), start_word=4, end_word=8)   # 2
     splicer.set_segment_map(Ref("Shabbat 2b:16"), Ref("Shabbat 2b:16"), start_word=9, end_word=9)   # 3
     splicer.set_segment_map(Ref("Shabbat 2b:16"), Ref("Shabbat 2b:16"), start_word=10)              # 4
     splicer.set_segment_map(Ref("Shabbat 2b:17"), Ref("Shabbat 2b:17"))                             # 5
     splicer.set_segment_map(Ref("Shabbat 2b:18"), Ref("Shabbat 2b:19"), end_word=4)                 # 6
     splicer.set_segment_map(Ref("Shabbat 2b:19"), Ref("Shabbat 2b:20"), start_word=5)               # 7
     splicer.set_segment_map(Ref("Shabbat 2b:21"), Ref("Shabbat 2b:23"), end_word=2)                 # 8
     splicer.set_segment_map(Ref("Shabbat 2b:23"), Ref("Shabbat 2b:24"), start_word=3, end_word=2)   # 9
     splicer.set_segment_map(Ref("Shabbat 2b:24"), Ref("Shabbat 2b:29"), start_word=3)               # 10
     self.splicer = splicer