def METHOD_NAME(self, uid_map, iid_map, dok_matrix):
    self.user_sentiment = OrderedDict()
    self.item_sentiment = OrderedDict()
    aid_map = OrderedDict()
    oid_map = OrderedDict()
    sentiment = OrderedDict()
    for idx, (raw_uid, raw_iid, sentiment_tuples) in enumerate(self.raw_data):
        user_idx = uid_map.get(raw_uid, None)
        item_idx = iid_map.get(raw_iid, None)
        if user_idx is None or item_idx is None or dok_matrix[user_idx, item_idx] == 0:
            continue
        user_dict = self.user_sentiment.setdefault(user_idx, OrderedDict())
        user_dict[item_idx] = idx
        item_dict = self.item_sentiment.setdefault(item_idx, OrderedDict())
        item_dict[user_idx] = idx
        mapped_tup = []
        for tup in sentiment_tuples:
            aspect, opinion, polarity = tup[0], tup[1], float(tup[2])
            aspect_idx = aid_map.setdefault(aspect, len(aid_map))
            opinion_idx = oid_map.setdefault(opinion, len(oid_map))
            mapped_tup.append((aspect_idx, opinion_idx, polarity))
        sentiment.setdefault(idx, mapped_tup)
    self.sentiment = sentiment
    self.aspect_id_map = aid_map
    self.opinion_id_map = oid_map