Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(87)  |  Call(56)  |  Derive(0)  |  Import(31)
A class for storing the address of a segment in LTTL.

src/o/r/Orange-Textable-1.4.2/_textable/widgets/LTTL/Recoder.py   Orange-Textable(Download)
from Segmentation   import Segmentation
from Segment        import Segment
from Address        import Address
from Input          import Input
 
            else:
                new_segment = Segment(Address(
                        str_index   = segmentation[0].address.str_index,
                        start       = segmentation[0].address.start,
                        end         = segmentation[0].address.end,
                else:
                    new_segment = Segment(Address(
                            str_index   = segment.address.str_index,
                            start       = segment.address.start,
                            end         = segment.address.end,

src/o/r/Orange-Textable-1.4.2/_textable/widgets/LTTL/Segmenter.py   Orange-Textable(Download)
 
from Segmentation import Segmentation
from Address      import Address
from Segment      import Segment
 
                existing_address = segment.address
                new_address = Address(
                        existing_address.str_index,
                        existing_address.start,
                        existing_address.end,
                                Segment(
                                        Address(
                                                str_index,
                                                start_pos + m.start(),
                                                start_pos + m.end(),
                                Segment(
                                        Address(
                                                str_index,
                                                previous_end_pos,
                                                start_pos + m.start(),
                                Segment(
                                        Address(
                                                str_index,
                                                previous_end_pos,
                                                segment_end_pos,

src/o/r/Orange-Textable-1.4.2/_textable/widgets/LTTL/Utils.py   Orange-Textable(Download)
from Segmentation import Segmentation
from Segment      import Segment
from Address      import Address
 
element_regex   = re.compile(r'(\w+)', re.U)
        new_segments.append(Segment(
                Address(
                        segment.address.str_index,
                        segment.address.start,
                        segment.address.end,

src/o/r/Orange-Textable-1.4.2/_textable/widgets/LTTL/Input.py   Orange-Textable(Download)
 
from Segment        import Segment
from Address        import Address
from Segmentation   import Segmentation
 
    def __init__(self, text=None, label=u'my_input'):
        """Initialize an Input instance"""
        Segmentation.data.append(None)
        str_index = len(Segmentation.data) - 1
        Segmentation.__init__(self, [Segment(Address(str_index))])