adding streamcorpus.get_entity_type to handle CUSTOM_TYPE better