the tokenizer.
"""
-import psycopg2.extras
-
class PlaceInfo:
""" Data class containing all information the tokenizer gets about a
place it should process the names for.
self._info = info
- def analyze(self, analyzer):
- """ Process this place with the given tokenizer and return the
- result in psycopg2-compatible Json.
- """
- return psycopg2.extras.Json(analyzer.process_place(self))
-
-
@property
def name(self):
""" A dictionary with the names of the place or None if the place