-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refact(core): update dependencies version & adopt the new analyzer #1989
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution~
hugegraph-core/src/main/java/com/baidu/hugegraph/StandardHugeGraph.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/analyzer/AnalyzerFactory.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #1989 +/- ##
============================================
- Coverage 70.54% 70.53% -0.01%
+ Complexity 978 724 -254
============================================
Files 454 454
Lines 39055 39054 -1
Branches 5557 5558 +1
============================================
- Hits 27550 27547 -3
Misses 8806 8806
- Partials 2699 2701 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…lyzer jraft 1.3.9->1.3.11 ohc-core 0.7.0->0.7.4 org.apdplat.word 1.3->1.3.1 hanlp portable-1.5.0->portable-1.8.3 lucene-analyzers-smartcn,lucene-core 7.4.0->8.11.2 jcseg-core->2.2.0 ->2.6.2 lz4-java 1.7.1->1.8.0 eclipse-collections 10.4.0->11.1.0 fastutil 8.1.0->8.4.0 jjwt 0.11.2->0.11.5
90d9a90
to
7bc8d13
Compare
hugegraph-core/src/main/java/com/baidu/hugegraph/analyzer/JcsegAnalyzer.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/analyzer/JcsegAnalyzer.java
Outdated
Show resolved
Hide resolved
segmentor.reset(new StringReader(text)); | ||
|
||
IWord word; | ||
while ((word = segmentor.next()) != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warn: will the segmentor.next()
throw exception if null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No exception
And improve analyzer code