Skip to content

Deserialization error on reading stream #2

@fredfourie

Description

@fredfourie

Although the stream is read correctly (and lemmatization works), the following is reported on the console:

Exception when deserializing Lemmatizer: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.MemoryStream.InternalReadInt32()
at System.IO.BinaryReader.ReadInt32()
at LemmaSharp.Classes.Lemmatizer.Deserialize(BinaryReader binRead)

LemmaSharp version: 4.12.5287.29676
Data file: full7z-mlteast-en.lem
C#.net version 4.5

Code used:

var path = @"..\..\data\full7z-mlteast-en.lem";
var stream = File.OpenRead(path);
Lemmatizer lemmatizer =  new Lemmatizer(stream);

The last line results in the console output reported above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions