MCPcopy Create free account
hub / github.com/baidu/DDParser / save

Method save

ddparser/parser/data_struct/corpus.py:158–161  ·  view source on GitHub ↗

Dumping corpus to disk

(self, path)

Source from the content-addressed store, hash-verified

156 return cls(fields, sentences)
157
158 def save(self, path):
159 """Dumping corpus to disk"""
160 with open(path, 'w') as f:
161 f.write(u"{}\n".format(self))
162
163 def _print(self):
164 """Print self"""

Callers 2

mainFunction · 0.80
predictFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected