Nearby word

def nearby(word):
    '''
    Nearby word
    '''
    w = any2unicode(word)
    # read from cache
    if w in _cache_nearby: return _cache_nearby[w]

    words, scores = [], []
    try:
        for x in _vectors.neighbours(w):
            words.append(x[0])
            scores.append(x[1])
    except: pass # ignore key error, OOV
    # put into cache
    _cache_nearby[w] = (words, scores)
    return words, scores