// Serialization Functions (Regular) ------------ public void Serialize(StreamWriter sWrt, bool bSerializeExamples) { Lsett.Serialize(sWrt); sWrt.WriteLine(bSerializeExamples); ElExamples.Serialize(sWrt, bSerializeExamples, false); if (!bSerializeExamples) { ElExamples.GetFrontRearExampleList(false).Serialize(sWrt, bSerializeExamples, false); ElExamples.GetFrontRearExampleList(true).Serialize(sWrt, bSerializeExamples, false); } //LtnRootNode.Serialize(sWrt); if (Lsett.bBuildFrontLemmatizer) { LtnRootNodeFront.Serialize(sWrt); } // exceptions foreach (var exception in this.Exceptions) { sWrt.WriteLine("{0} {1}", exception.Key, exception.Value); } }
public void Serialize(BinaryWriter binWrt, bool bSerializeExamples) { lsett.Serialize(binWrt); binWrt.Write(bSerializeExamples); elExamples.Serialize(binWrt, bSerializeExamples, false); if (!bSerializeExamples) { elExamples.GetFrontRearExampleList(false).Serialize(binWrt, bSerializeExamples, false); elExamples.GetFrontRearExampleList(true).Serialize(binWrt, bSerializeExamples, false); } ltnRootNode.Serialize(binWrt); if (lsett.bBuildFrontLemmatizer) { ltnRootNodeFront.Serialize(binWrt); } bool bMsdSplitTreePresent = (msdSplitTree != null); binWrt.Write(bMsdSplitTreePresent); if (bMsdSplitTreePresent) { msdSplitTree.Serialize(binWrt); } }
public void Serialize(BinaryWriter binWrt, bool bSerializeExamples) { lsett.Serialize(binWrt); elExamples.Serialize(binWrt, bSerializeExamples, false); ltnRootNode.Serialize(binWrt); }