You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Martin Wiesner (Jira)" <ji...@apache.org> on 2022/12/11 18:02:00 UTC

[jira] [Updated] (OPENNLP-1412) Provide equals and hashCode for ParserModel and TokenizerModel

     [ https://issues.apache.org/jira/browse/OPENNLP-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Wiesner updated OPENNLP-1412:
------------------------------------
    Description: 
The tests {_}opennlp.tools.tokenize.TokenizerModelTest{_}, {_}opennlp.tools.parser.chunking.{_}{_}ParserTest{_}, and {_}opennlp.tools.parser.treeinsert.{_}{_}ParserTest{_} signal by TODOs that no actual assertions are made to check whether (de-)serialized Model instances are correctly read in again.
In other words: Those (Tokenizer/Parser) models lacks a valid equals/hashCode implementation by which one could verify a valid state (=equality) after (de-)serialization has occurred.

Aim:
 * Provide an improved implementation of the related "Model" classes.
 * Remove existing TODOs in _TokenizerModelTest_ and _ParserTest_
 * Improve the three test classes with further test assertions.

  was:
The tests {_}opennlp.tools.tokenize.TokenizerModelTest{_},  
{_}opennlp.tools.parser.chunking.{_}{_}ParserTest{_}, and 
{_}opennlp.tools.parser.treeinsert.{_}_ParserTest_ signal by TODOs that no actual assertions are made to check whether (de-)serialized Model instances are correctly read in again.
In other words: Those (Tokenizer/Parser) models lacks a valid equals/hashCode implementation by which one could verify a valid state (=equality) after (de-)serialization has occurred.

Aim:
 * Provide an improved implementation of the related "Model" classes.
 * Remove existing TODOs in _TokenizerModelTest_ and _ParserTest_
 * Improve the three test classes with further test assertions.


> Provide equals and hashCode for ParserModel and TokenizerModel
> --------------------------------------------------------------
>
>                 Key: OPENNLP-1412
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1412
>             Project: OpenNLP
>          Issue Type: Improvement
>          Components: Parser, Tokenizer
>    Affects Versions: 2.1.0
>            Reporter: Martin Wiesner
>            Assignee: Martin Wiesner
>            Priority: Minor
>             Fix For: 2.1.1
>
>
> The tests {_}opennlp.tools.tokenize.TokenizerModelTest{_}, {_}opennlp.tools.parser.chunking.{_}{_}ParserTest{_}, and {_}opennlp.tools.parser.treeinsert.{_}{_}ParserTest{_} signal by TODOs that no actual assertions are made to check whether (de-)serialized Model instances are correctly read in again.
> In other words: Those (Tokenizer/Parser) models lacks a valid equals/hashCode implementation by which one could verify a valid state (=equality) after (de-)serialization has occurred.
> Aim:
>  * Provide an improved implementation of the related "Model" classes.
>  * Remove existing TODOs in _TokenizerModelTest_ and _ParserTest_
>  * Improve the three test classes with further test assertions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)