Returns a new Text from the given XML string.
(cls, xml)
| 983 | |
| 984 | @classmethod |
| 985 | def from_xml(cls, xml): |
| 986 | """ Returns a new Text from the given XML string. |
| 987 | """ |
| 988 | s = parse_string(xml) |
| 989 | return Sentence(s.split("\n")[0], token=s.tags, language=s.language) |
| 990 | |
| 991 | fromxml = from_xml |
| 992 |
nothing calls this directly
no test coverage detected