wordnet.py
def average_depth(word, pos):
    "Compute average depth for all synsets corresponding to a word."
    synsets = wn.synsets(word, pos)
    depths = [s.min_depth() for s in synsets]
    avg_depth = np.average(depths)
    return avg_depth
Compute average depth for all synsets corresponding to a word.
Compute average depth for all synsets corresponding to a word.
Compute average depth for all synsets corresponding to a word .
def average_depth(word, pos):
    synsets = wn.synsets(word, pos)
    depths = [s.min_depth() for s in synsets]
    avg_depth = np.average(depths)
    return avg_depth
def average_depth ( word , pos ) : synsets = wn . synsets ( word , pos ) depths = [ s . min_depth ( ) for s in synsets ] avg_depth = np . average ( depths ) return avg_depth
Compute average depth for all synsets corresponding to a word.
Compute average depth for all synsets corresponding to a word .
"Compute average depth for all synsets corresponding to a word."
word
pos