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)
## map LingPipe's specific strings to streamcorpus.EntityType
_ENTITY_TYPES = {
    'PERSON': EntityType.PER,
    'FEMALE_PRONOUN': EntityType.PER,
    'MALE_PRONOUN': EntityType.PER,

src/s/t/streamcorpus_pipeline-0.5.23.dev1/streamcorpus_pipeline/_upgrade_streamcorpus_v0_3_0.py   streamcorpus_pipeline(Download)
                        ## convert FEMALE/MALE_PRONOUN
                        new_token.mention_type = streamcorpus.MentionType.PRO
                        new_token.entity_type  = streamcorpus.EntityType.PER
 
                        if token.entity_type == 3:

src/s/t/streamcorpus-0.3.30/src/streamcorpus/test_entity_type.py   streamcorpus(Download)
def test_entity_type():
    tok_per = Token(entity_type=EntityType.PER)
    tok_foo = Token(entity_type=EntityType.CUSTOM_TYPE, custom_entity_type='foo')
 
    assert get_entity_type(tok_per) == 'PER'