Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes with current dump #26

Closed
p-sodmann opened this issue Jun 8, 2019 · 2 comments
Closed

Crashes with current dump #26

p-sodmann opened this issue Jun 8, 2019 · 2 comments

Comments

@p-sodmann
Copy link

The Parser crashes if I try to parse a current dump of wiktionary.

Full output:

PronounParser: contains parenthesis welcher

PronounParser: contains parenthesis welcher

PronounParser: contains parenthesis welcher

PronounParser: contains parenthesis welcher

NounParser: contains parenthesis: Zeche

VerbSchwachUntrennbarParser: Flexion:sperbern parsing arguments, possible empty parameter

Error Verb Flexparser: Flexion:wohltun, wohltue
ich tu

AdjectiveFlexParser: No definition block: Flexion:heben/Gerundivum

Unbehandelte Ausnahme: System.InvalidOperationException: Die Sequenz enthält keine Elemente.

bei System.Linq.Enumerable.First[TSource](IEnumerable`1 source)

bei IWNLP.Parser.FlexParser.VerbFlexParser.Parse(String word, String[] text) in C:\works\tools\iwnlp\IWNLP\IWNLP.Parser\FlexParser\VerbFlexParser.cs:Zeile 28.

bei IWNLP.Parser.WiktionaryParser.ParseText(String word, String textInput, Int32 wikiID) in C:\works\tools\iwnlp\IWNLP\IWNLP.Parser\WiktionaryParser.cs:Zeile 95.

bei IWNLP.Parser.Program.Main(String[] args) in C:\works\tools\iwnlp\IWNLP\IWNLP.Parser\Program.cs:Zeile 50.

@Liebeck
Copy link
Owner

Liebeck commented Jun 21, 2019

I added some exception handling to prevent further crashes. With the current dump, there are 3 unit tests failing but I don't have time to fix them right now. Pull requests are welcome ;-)

@p-sodmann
Copy link
Author

Thank you for fixing the bug.

@Liebeck Liebeck closed this as completed Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants