nltk.FeatList.equal_values¶
-
FeatList.
equal_values
(other, check_reentrance=False)¶ Return True if
self
andother
assign the same value to to every feature. In particular, return true ifself[p]==other[p]
for every feature path p such thatself[p]
orother[p]
is a base value (i.e., not a nested feature structure).Parameters: check_reentrance – If True, then also return False if there is any difference between the reentrances of self
andother
.Note: the ==
is equivalent toequal_values()
withcheck_reentrance=True
.