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

All Samples(9)  |  Call(6)  |  Derive(0)  |  Import(3)

src/s/t/streamcorpus_pipeline-0.5.23.dev1/examples/john_smith_custom_reader.py   streamcorpus_pipeline(Download)
 
        ## The authors also annotated the corpus
        anno = streamcorpus.Annotator()
        anno.annotator_id = 'bagga-and-baldwin'
        anno.annotation_time = stream_item.stream_time

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_upgrade_streamcorpus.py   streamcorpus_pipeline(Download)
import logging
 
from streamcorpus import make_stream_item, make_stream_time, ContentItem, Tagging, Rating, Target, Annotator
from streamcorpus_pipeline.stages import Configured
 
            stream_id = parts[2]
            if stream_id not in annotated_stream_ids:
                annotated_stream_ids[ stream_id ] = Rating(annotator=Annotator(annotator_id=parts[0]),
                                                           target=Target(target_id='http://en.wikipedia.org/wiki/%s' % parts[3]))
 

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/_john_smith.py   streamcorpus_pipeline(Download)
 
            ## The authors also annotated the corpus
            anno = streamcorpus.Annotator()
            anno.annotator_id = 'bagga-and-baldwin'
            anno.annotation_time = stream_item.stream_time

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_yaml_files_list.py   streamcorpus_pipeline(Download)
 
        ## annotations
        anno = streamcorpus.Annotator()
        anno.annotator_id = metadata['annotator_id']
        anno.annotation_time = stream_item.stream_time

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/tests/test_taggers.py   streamcorpus_pipeline(Download)
from __future__ import absolute_import
import pytest
from streamcorpus import Chunk, make_stream_item, add_annotation, \
    Sentence, Token, Annotator, Target, Rating
 
                Token(token='Teeth'),
                ])]
    rating = Rating(annotator=Annotator(annotator_id=annotator_id),
           target=Target(target_id=target_id),
           mentions=['Big dog! Jake... ', u'\u1F601 Teeth'.encode('utf8')],