Skip to content

Commit

Permalink
Fix LT-21868: Run Tests should use wordforms with no. in corpus > 0 (#…
Browse files Browse the repository at this point in the history
…146)

Co-authored-by: Jake Oliver <[email protected]>
  • Loading branch information
jtmaxwell3 and JakeOliver28 authored Aug 28, 2024
1 parent c067800 commit b2c75ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Src/LexText/ParserUI/ParserListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -571,13 +571,20 @@ private bool ContainsGenre(ICmPossibility genre1, ICmPossibility genre2)
return false;
}

/// <summary>
/// Check parser on all words in texts.
/// </summary>
public bool OnCheckParserOnAll(object argument)
{
CheckDisposed();

if (ConnectToParser())
{
IEnumerable<IWfiWordform> wordforms = m_cache.ServiceLocator.GetInstance<IWfiWordformRepository>().AllInstances();
IEnumerable<IWfiWordform> wordforms = new HashSet<IWfiWordform>();
foreach (var text in m_cache.LanguageProject.InterlinearTexts)
{
wordforms = wordforms.Union(text.UniqueWordforms());
}
UpdateWordforms(wordforms, ParserPriority.Low, checkParser: true, "All Texts");
}

Expand Down

0 comments on commit b2c75ea

Please sign in to comment.