(self)
| 555 | class TestParseTree(unittest.TestCase): |
| 556 | |
| 557 | def setUp(self): |
| 558 | # Parse sentences to test on. |
| 559 | # Creating a Text creates Sentence, Chunk, PNP and Word. |
| 560 | # Creating a Sentence tests Sentence.append() and Sentence.parse_token(). |
| 561 | self.text = "I'm eating pizza with a fork. What a tasty pizza!" |
| 562 | self.text = en.Text(en.parse(self.text, relations=True, lemmata=True)) |
| 563 | |
| 564 | def test_copy(self): |
| 565 | # Assert deepcopy of Text, Sentence, Chunk, PNP and Word. |