def get_model(self, file_path):
        """
        Loads the model from okapi style file.
        >>> from pkg_resources import resource_filename
        >>> import testfm
        >>> path = resource_filename(testfm.__name__, "data/okapi.tsv")
        >>> okapi = Load_Okapi()
        >>> model = okapi.get_model(path)
        >>> len(model._users)
        4
        >>> len(model._items)
        2
        >>> model.getScore(30331, 6731)
        0.11887863463700001

        @param file_path: str that shows the path to load the file
        @return:
        """
        data = self._parse_file(file_path)

        # 0 for user factors and 1 for item factors
        factors = {0: {}, 1: {}}
        for node_type, (data_key, data_value) in data:
            try:
                factors[node_type][data_key] = data_value
            except __HOLE__:
                pass

        fm = FactorModel(userf=factors[0], itemf=factors[1])
        return fm
dataset/ETHPy150Open grafos-ml/test.fm/src/testfm/fmio/load_model.py/Load_Okapi.get_model