krickert commented on code in PR #1003:
URL: https://github.com/apache/opennlp/pull/1003#discussion_r3059058867
##########
opennlp-core/opennlp-runtime/src/main/java/opennlp/tools/util/featuregen/DocumentBeginFeatureGenerator.java:
##########
@@ -26,14 +26,16 @@
*/
public class DocumentBeginFeatureGenerator implements AdaptiveFeatureGenerator
{
- private String[] firstSentence;
+ private final ThreadLocal<String[]> threadState = new ThreadLocal<>();
Review Comment:
Should be addressed in 4334043 alongside the other comment on this class
(field comment next to the ThreadLocal).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]