Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
test-spring
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
倪 泽文
test-spring
Commits
af6543fe
Commit
af6543fe
authored
1 year ago
by
Yu Dongjun
Browse files
Options
Downloads
Patches
Plain Diff
Update expected comment63.md
parent
4af5e2d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
comment63.md
+8
-7
8 additions, 7 deletions
comment63.md
with
8 additions
and
7 deletions
comment63.md
+
8
−
7
View file @
af6543fe
```
待评审函数开始 protected void SentenceRun(String method) throws IOException
// 待评审函数开始
protected void SentenceRun(String method) throws IOException
{
String text = getString("text");
int number = getInt("number", 6);
...
...
@@ -32,12 +34,11 @@
//response the request
response(STATUS_OK, map);
}```
待评审函数结束
}
// 待评审函数结束
```
这是一个Java方法,名为`SentenceRun`,接受一个字符串参数`method`。该方法主要的功能是使用`JcsegGlobalResource`获取一个`TokenizerEntry`实例,然后使用这个实例创建一个`ISegment`对象和一个`TextRankSummaryExtractor`对象,用于提取字符串`text`中的句子,并返回提取到的句子列表。
这是一个Java方法,名为
`SentenceRun`
,接受一个字符串参数
`method`
。该方法主要的功能是使用
`JcsegGlobalResource`
获取一个
`TokenizerEntry`
实例,然后使用这个实例创建一个
`ISegment`
对象和一个
`TextRankSummaryExtractor`
对象,用于提取字符串
`text`
中的句子,并返回提取到的句子列表。
该方法首先检查
`text`
参数是否为空或null,如果为空或null,则返回一个错误信息。然后,方法获取
`JcsegGlobalResource`
实例中的
`TokenizerEntry`
对象,如果找不到这个对象,则返回一个错误信息。
接着,方法使用
`ISegment`
对象和
`TextRankSummaryExtractor`
对象提取
`text`
中的句子,并将提取到的句子列表存储在一个
`List<String>`
对象中。然后,方法计算这个过程所花费的时间,并将这个时间存储在一个
`double`
对象中。
最后,方法将提取到的句子列表、时间和其他一些信息存储在一个`Map<String, Object>`对象中,并返回这个对象作为请求的响应结果。
\ No newline at end of file
最后,方法将提取到的句子列表、时间和其他一些信息存储在一个
`Map<String, Object>`
对象中,并返回这个对象作为请求的响应结果。
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment