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

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_upgrade_streamcorpus_v0_3_0.py   streamcorpus_pipeline(Download)
        for label in labels:
            new_label = streamcorpus.Label(
                annotator=label.annotator,
                target=label.target,
                positive=True, ## this is the reason we have to create new_labels

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_hyperlink_labels.py   streamcorpus_pipeline(Download)
import logging
 
from streamcorpus import add_annotation, Offset, OffsetType, Annotator, Target, Label
from streamcorpus_pipeline._clean_visible import make_clean_visible
from streamcorpus_pipeline.stages import Configured
                ## add a label for every href
                label = Label(
                    annotator = Annotator(annotator_id = 'author'),
                    target = Target(target_id = href),
                    )

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_taggers.py   streamcorpus_pipeline(Download)
 
import streamcorpus
from streamcorpus import Chunk, Tagging, Label, OffsetType, add_annotation
from streamcorpus_pipeline._clean_visible import make_clean_visible_file, \
    cleanse
        if annotator_id == aligner_data['annotator_id']:
            for rating in ratings:
                label = Label(annotator=rating.annotator,
                              target=rating.target)
 
        if annotator_id == aligner_data['annotator_id']:
            for rating in ratings:
                label = Label(annotator=rating.annotator,
                              target=rating.target)
 

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_run_lingpipe.py   streamcorpus_pipeline(Download)
 
import streamcorpus
from streamcorpus import Chunk, Label, Tagging
#import lingpipe
lingpipe = None
        ## make JS labels on individual tokens
        assert stream_item.ratings[0].mentions, stream_item.stream_id
        john_smith_label = Label()
        john_smith_label.annotator = stream_item.ratings[0].annotator
        john_smith_label.target_id = stream_item.ratings[0].target_id