Commit 5eaffd7e by Steven Xu

fixed deprecated call to inc()

parent 3fb0210a
......@@ -696,7 +696,7 @@ distribution of part-of-speech tags for reduplicated words.
>>> for record in rotokas[1:]:
... lexeme = record.find('lx').text
... if re.match(r'(.*)\1$', lexeme):
... redup_pos_freqdist.inc(record.find('ps').text)
... redup_pos_freqdist[record.find('ps').text] += 1
>>> for item in redup_pos_freqdist.keys():
... print(item, redup_pos_freqdist[item])
V 41
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment