def get_topic_similarities_dict():
 topic_similarities_entity = recommendations_models.TopicSimilaritiesModel.get(recommendations_models.TOPIC_SIMILARITIES_ID, strict=False)
 if (topic_similarities_entity is None):
  topic_similarities_entity = _create_default_topic_similarities()
 return json.loads(topic_similarities_entity.content)

def get_topic_similarities_dict ( ) : topic_similarities_entity = recommendations_models . TopicSimilaritiesModel . get ( recommendations_models . TOPIC_SIMILARITIES_ID , strict = False ) if ( topic_similarities_entity is None ) : topic_similarities_entity = _create_default_topic_similarities ( ) return json . loads ( topic_similarities_entity . content )
returns a 2d dict of topic similarities .