(self)
| 683 | print "pattern.graph.commonsense.Commonsense.field()" |
| 684 | |
| 685 | def test_similarity(self): |
| 686 | # Assert that tiger is more similar to lion than to spoon |
| 687 | # (which is common sense). |
| 688 | g = commonsense.Commonsense() |
| 689 | w1 = g.similarity("tiger", "lion") |
| 690 | w2 = g.similarity("tiger", "spoon") |
| 691 | self.assertTrue(w1 > w2) |
| 692 | print "pattern.graph.commonsense.Commonsense.similarity()" |
| 693 | |
| 694 | #--------------------------------------------------------------------------------------------------- |
| 695 |
nothing calls this directly
no test coverage detected