MCPcopy Index your code
hub / github.com/clips/pattern / XML

Class XML

pattern/text/tree.py:1305–1310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1303# s = Text(s, token=[WORD, POS, CHUNK, PNP, LEMMA]) # (1)
1304
1305class XML(object):
1306 def __init__(self, string):
1307 from xml.etree import cElementTree
1308 self.root = cElementTree.fromstring(string)
1309 def __call__(self, tag):
1310 return [XMLNode(e) for e in self.root.findall(tag)]
1311
1312class XMLNode(object):
1313 def __init__(self, element):

Callers 1

parse_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected