Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
suggest-task
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
田川
suggest-task
Commits
b133aa30
Commit
b133aa30
authored
Aug 08, 2022
by
王明范
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加从配add ignorewordå
parent
e9aae63b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
SuggestTask.java
suggest-task/src/main/java/com/secoo/so/suggest/task/SuggestTask.java
+4
-0
No files found.
suggest-task/src/main/java/com/secoo/so/suggest/task/SuggestTask.java
View file @
b133aa30
...
@@ -41,6 +41,7 @@ public class SuggestTask {
...
@@ -41,6 +41,7 @@ public class SuggestTask {
private
static
Set
<
String
>
spWordSet
=
new
HashSet
<>();
private
static
Set
<
String
>
spWordSet
=
new
HashSet
<>();
private
static
Set
<
Set
<
String
>>
synonymList
=
new
HashSet
<>();
private
static
Set
<
Set
<
String
>>
synonymList
=
new
HashSet
<>();
private
static
Set
<
String
>
ignoreWordSet
=
new
HashSet
<>(
Arrays
.
asList
(
"系列"
,
"型号"
,
"款式"
));
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
startTime
=
System
.
currentTimeMillis
();
startTime
=
System
.
currentTimeMillis
();
...
@@ -441,6 +442,9 @@ public class SuggestTask {
...
@@ -441,6 +442,9 @@ public class SuggestTask {
// 限制作为标签的长度
// 限制作为标签的长度
return
true
;
return
true
;
}
}
if
(
ignoreWordSet
.
contains
(
rightWord
))
{
return
true
;
}
boolean
isTShirt
=
false
;
boolean
isTShirt
=
false
;
if
(
rightWord
.
length
()
>=
2
&&
rightWord
.
toLowerCase
().
startsWith
(
"t恤"
))
{
if
(
rightWord
.
length
()
>=
2
&&
rightWord
.
toLowerCase
().
startsWith
(
"t恤"
))
{
isTShirt
=
true
;
isTShirt
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment