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

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_lingpipe.py   streamcorpus_pipeline(Download)
                )
        if 'LINES' in self.config['offset_types']:
            tok.offsets[OffsetType.LINES] = Offset(
                type =  OffsetType.LINES,
                first=self.line_idx,

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_hyperlink_labels.py   streamcorpus_pipeline(Download)
            parser = self.byte_href_anchors
 
        elif self.offset_type == OffsetType.LINES:
            parser = self.line_href_anchors
 
                                      stream_item.body.clean_visible)
            if labels:
                if self.offset_type == OffsetType.LINES:
                    ## for LINES-type labels, must replace clean_html
                    ## with a new one that has newlines inserted

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_taggers.py   streamcorpus_pipeline(Download)
            ## remove the offset from the label, because we are
            ## putting it into the token
            label_off = label.offsets.pop(OffsetType.LINES)
 
            assert label_off.length == len(label_off.value.split('\n'))

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/tests/test_hyperlink_labels.py   streamcorpus_pipeline(Download)
    elapsed_lines = time.time() - start
 
    assert si2.body.labels['author'][0].offsets.keys() == [OffsetType.LINES]
 
    byte_labels = set()
    for annotator_id in si2.body.labels:
        for label in si2.body.labels[annotator_id]:
            assert OffsetType.LINES in label.offsets
            line_labels.add(label.target.target_id)