MCPcopy
hub / github.com/nltk/nltk / get

Method get

nltk/draw/table.py:388–399  ·  view source on GitHub ↗

Return the value(s) of the specified row(s). If ``last`` is not specified, then return a single row value; otherwise, return a list of row values. Each row value is a tuple of cell values, one for each column in the row.

(self, first, last=None)

Source from the content-addressed store, hash-verified

386 lb.insert(index, *elts)
387
388 def get(self, first, last=None):
389 """
390 Return the value(s) of the specified row(s). If ``last`` is
391 not specified, then return a single row value; otherwise,
392 return a list of row values. Each row value is a tuple of
393 cell values, one for each column in the row.
394 """
395 values = [lb.get(first, last) for lb in self._listboxes]
396 if last:
397 return [tuple(row) for row in zip(*values)]
398 else:
399 return tuple(values)
400
401 def bbox(self, row, col):
402 """

Callers 15

from_trainMethod · 0.45
data_sectionMethod · 0.45
trainMethod · 0.45
classifyMethod · 0.45
stumpMethod · 0.45
refineMethod · 0.45
binary_stumpMethod · 0.45
mi_likeMethod · 0.45
approxrandFunction · 0.45
__getitem__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by 4

test_build_indexFunction · 0.36
prob_t_a_given_s_mockMethod · 0.36