@@ -0,0 +1,1280 @@
+import tagnews%0A%0A%0Aclass Test_GeoCoder():%0A    @classmethod%0A    def setup_method(cls):%0A        cls.model = tagnews.geoCoder()%0A%0A    def test_extract_geostrings(self):%0A        self.model.extract_geostrings(%0A            ('This is example article text with a location of'%0A             ' 55th and Woodlawn where something happened.')%0A        )%0A%0A    def test_extract_geostring_probs(self):%0A        article = ('This is example article text with a location of'%0A                   ' 55th and Woodlawn where something happened.')%0A        words, probs = self.model.extract_geostring_probs(article)%0A        max_prob = probs.max()%0A        max_word = probs.idxmax()%0A        geostrings = self.model.extract_geostrings(article,%0A                                                   prob_thresh=max_prob-0.001)%0A        assert max_word in %5Bword for geostring in geostrings for word in geostring%5D%0A%0A    def test_lat_longs_from_geostring_lists():%0A        geostring_lists = %5B%5B'5500', 'S', 'Woodlawn'%5D, %5B'100', 'N.', 'Wacker'%5D, %5B'thigh'%5D%5D%0A        lat_longs, scores = self.model.lat_longs_from_geostring_lists(%0A            geostring_lists, sleep_secs=0.5%0A        )%0A%0A        assert scores%5B2%5D %3C scores%5B0%5D%0A        assert scores%5B2%5D %3C scores%5B1%5D%0A%0A        assert len(lat_longs) == len(geostring_lists) == len(scores)%0A

Add tests for geocoder