Exemplo n.º 1
0
def create_entity(name):
    '''
    Create a generic person name taxon, rather than a particular personality/celebrity
    '''
    taxon = Taxon()
    n = name.strip().lower()
    taxon.name = 'person_name.{}'.format(n)
    taxon.phrase = n
    taxon.phrasenorm = taxon.phrase # Nothing more to normalize.
    taxon.is_valid = True
    taxon.tags = []
    #if n in non_person_names: 
    #    taxon.is_valid = False
    
    return taxon