def _build_inverse_table(self, wvd):
    g = enumerate(wvd)
    if isinstance(wvd, dict):
        g = iter(wvd.items())
    for (i, w) in g:
        self.add(w)
def _build_inverse_table(self, wvd):
    g = enumerate(wvd)
    if isinstance(wvd, dict):
        g = iter(wvd.items())
    for (i, w) in g:
        self.add(w)