Esempio n. 1
0
class TestLSI(unittest.TestCase):
    def setUp(self):
        self.okapi = Load_Okapi()

    def test_parseline(self):
        """
        Using stupid syntax +"\t"+ just because pycharm can not handle tabs...
        @return:
        """
        l1 = self.okapi._parse_line("6523 0\t[0.838237; 0.508268]")
        self.assertEqual((0, (6523, [0.838237, 0.508268])), l1)
        l2 = self.okapi._parse_line("5794 1\t[0.090743; 0.334450]")
        self.assertEqual((1, (5794, [0.090743, 0.334450])), l2)
Esempio n. 2
0
class TestLSI(unittest.TestCase):
    def setUp(self):
        self.okapi = Load_Okapi()

    def test_parseline(self):
        """
        Using stupid syntax +"\t"+ just because pycharm can not handle tabs...
        @return:
        """
        l1 = self.okapi._parse_line("6523 0\t[0.838237; 0.508268]")
        self.assertEqual((0, (6523, [0.838237, 0.508268])), l1)
        l2 = self.okapi._parse_line("5794 1\t[0.090743; 0.334450]")
        self.assertEqual((1, (5794, [0.090743, 0.334450])), l2)
Esempio n. 3
0
 def setUp(self):
     self.okapi = Load_Okapi()
Esempio n. 4
0
 def setUp(self):
     self.okapi = Load_Okapi()