Skip to content

OPENNLP-1332: Fix default chunker context generator has inconsistent format#441

Closed
mawiesne wants to merge 9 commits into
apache:masterfrom
mawiesne:OPENNLP-1332/Fix_Default_chunker_context_generator_has_inconsistent_format
Closed

OPENNLP-1332: Fix default chunker context generator has inconsistent format#441
mawiesne wants to merge 9 commits into
apache:masterfrom
mawiesne:OPENNLP-1332/Fix_Default_chunker_context_generator_has_inconsistent_format

Conversation

@mawiesne
Copy link
Copy Markdown
Contributor

Thank you for contributing to Apache OpenNLP.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced
    in the commit message?

  • Does your PR title start with OPENNLP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

  • Has your PR been rebased against the latest commit within the target branch (typically master)?

  • Is your initial contribution a single, squashed commit?

For code changes:

  • Have you ensured that the full suite of tests is executed via mvn clean install at the root opennlp folder?
  • Have you written or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE file, including the main LICENSE file in opennlp folder?
  • If applicable, have you updated the NOTICE file, including the main NOTICE file found in opennlp folder?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered?

Note:

Please ensure that once the PR is submitted, you check GitHub Actions for build issues and submit an update to your PR as soon as possible.

mawiesne and others added 9 commits October 30, 2022 16:46
- eliminates several compiler warnings by more consequent use of generic types
- reduces use of deprecated api calls to external deps
- introduces Sample interface as a marker for similar impl classes
- introduces Trainer interface as a marker for similar impl classes
- adapts previously deprecated methods in AbstractTrainer
- removes deprecated constructor 'TrainingParameters(Map<String,String> map)' in favor of 'public TrainingParameters(Map<String,Object> map)'
- removes deprecated methods in TrainingParameters
- eliminates more compiler warnings related to raw use of parameterized types
- reduces use of deprecated api calls to external deps
- removes orphaned methods / constructors that where not used or not required anymore
- fixes typos and improves JavaDoc
# Conflicts:
#	opennlp-tools/src/test/java/opennlp/tools/convert/FileToStringSampleStreamTest.java
#	opennlp-tools/src/test/java/opennlp/tools/formats/ad/ADTokenSampleStreamTest.java
#	opennlp-tools/src/test/java/opennlp/tools/languagemodel/NgramLanguageModelTest.java
#	opennlp-tools/src/test/java/opennlp/tools/ml/ArrayMathTest.java
#	opennlp-tools/src/test/java/opennlp/tools/ml/MockSequenceTrainer.java
#	opennlp-tools/src/test/java/opennlp/tools/postag/POSTaggerFactoryTest.java
#	opennlp-tools/src/test/java/opennlp/tools/util/TrainingParametersTest.java
- adapts to changes brought by OPENNLP-1361 (-> JUnit5), fixes compile error
Copy link
Copy Markdown
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1! Maybe we could squash the commits? I think this PR has 9 commits for this small change? Thanks!

@mawiesne
Copy link
Copy Markdown
Contributor Author

Closing this PR due to naming conflict in git branch. Reopen will follow from separate, consistent topic branch.

@mawiesne mawiesne closed this Nov 30, 2022
@mawiesne mawiesne deleted the OPENNLP-1332/Fix_Default_chunker_context_generator_has_inconsistent_format branch November 30, 2022 14:45
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

Successfully merging this pull request may close these issues.

3 participants