Skip to content

Releases: mideind/GreynirEngine

Version 3.3.0

07 Sep 14:55
Compare
Choose a tag to compare
  • Modified >> operator for matching SimpleTree instances so that it does not recurse into nested IP (inflectional phrase, beygingarliður) nonterminals. Added >>> operator which behaves like the >> used to behave.
  • Added SimpleTree.substituted_text() function to make it easier to obtain the text within a subtree after replacing a particular contained node's text with new text. This is useful for instance in grammar correction, when generating suggested corrections.
  • Smaller fixes in the grammar and the auto-capitalization logic.

Version 3.2.0

17 Aug 12:05
Compare
Choose a tag to compare
  • The original text associated with each token is now maintained through the parser stack. The original text of a token t is available through the t.original attribute.
  • Support for expletives (leppur) has been added to the grammar. As an example, in the sentence það snjóar the verb terminal is now marked with the _expl variant. Only verbs marked as expletive-compatible in BÍN (i.e. having "það" in their inflection string) can match the _expl variant.
  • Handling of person names and auto-uppercasing has been improved.

Version 3.1.0

12 May 14:55
Compare
Choose a tag to compare
  • Grammar normalized and enhanced. This may cause parse trees to be slightly different from previous versions. For example the phrase "í dag" no longer appears as a single tree node with a multi-word adverbial phrase, but instead as a temporal phrase subtree with preposition and noun nodes. Also, verb phrases are expanded into nested subtrees in a more consistent manner than before.
  • Configuration files cleaned up as a consequence of the split-off of BinPackage.

Version 3.0.0

14 Apr 15:40
Compare
Choose a tag to compare
  • Switched to using BinPackage for vocabulary lookup
  • Lots of type annotations
  • Added function for simplistic lemmatization of text

Version 2.10.1

30 Jan 12:11
Compare
Choose a tag to compare
  • Fixed bug where a wrong version of the file Greynir.grammar.bin was included in the Pip package.
  • Please upgrade 2.10.0 to this release as the parser won't work out-of-the-box in 2.10.0.
  • That said, a fix for 2.10.0 is to install it and then delete the src/reynir/Greynir.grammar.bin file. It will be automatically re-generated when Greynir is next invoked.

Version 2.10

29 Jan 16:51
Compare
Choose a tag to compare
  • Grammar improvements
  • Better coalescing of names, especially foreign names
  • Added BIN_Db.lookup_forms() to look up nouns in singular and plural, definite and indefinite forms
  • Added type annotations
  • Migrated from Travis CI to GitHub Actions

Version 2.9.0

04 Jan 16:04
Compare
Choose a tag to compare
  • Dictionary database updated from newest version of BÍN (Beygingarlýsing íslensks nútímamáls, Database of Modern Icelandic Inflection).
  • Copyright and licensing information updated to conform with BÍN's CC-BY 4.0 license.
  • Grammar updates; handling of capitalization corner cases improved.

Version 2.8.1

19 Nov 09:35
Compare
Choose a tag to compare
  • Fixes in auto-uppercasing logic, for better handling of person names and proper names from lowercased input
  • Added family names (ættarnöfn) to vocabulary
  • Added type annotations; internal refactoring

Version 2.8.0

13 Nov 15:36
Compare
Choose a tag to compare
  • Added binary wheels for PyPy; adopted manylinux2010 wheel format
  • Add Python 3.9 to list of supported and tested versions
  • Better attachment of prepositions to infinitive verbs (nafnháttarsagnir)
  • Grammar enhancements and simplifications
  • Type annotations added

Version 2.7.0

06 Oct 22:40
Compare
Choose a tag to compare
  • Parsing of very long sentences (>80 tokens) is now faster and much less memory-intensive. This is due to significant improvements in the parse forest reduction algorithm. It no longer needs to unpack shared packed parse forest (SPPF) nodes in order to be able to assign different scores to preposition phrases depending on their verb context. Instead, granular memoization is used when traversing the SPPF to calculate subtree scores.
  • Problems with installing under CPython on macOS fixed by adjusting C++ compiler flags.
  • Documented how to use the CFLAGS environment variable on to install under PyPy on macOS.