Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
search_tips
Project
Project
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
rank
search_tips
Commits
62e9a30f
Commit
62e9a30f
authored
Aug 24, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步
parent
a4eff597
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
brandwiki_transfer.py
trans2es/utils/brandwiki_transfer.py
+1
-1
collectwiki_transfer.py
trans2es/utils/collectwiki_transfer.py
+1
-1
doctor_transfer.py
trans2es/utils/doctor_transfer.py
+1
-1
hospital_transfer.py
trans2es/utils/hospital_transfer.py
+1
-1
itemwiki_transfer.py
trans2es/utils/itemwiki_transfer.py
+1
-1
productwiki_transfer.py
trans2es/utils/productwiki_transfer.py
+1
-1
tag_transfer.py
trans2es/utils/tag_transfer.py
+1
-1
wordresemble.py
trans2es/utils/wordresemble.py
+1
-1
No files found.
trans2es/utils/brandwiki_transfer.py
View file @
62e9a30f
...
...
@@ -60,7 +60,7 @@ class BrandWikiTransferV1(object):
item_dict
[
"offline_score"
]
=
0.0
item_dict
[
"tips_name_type"
]
=
3
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
_v1
(
str
(
instance
.
name
)
.
lower
())
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
())
return
(
item_dict
,
suggest_list
)
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
...
...
trans2es/utils/collectwiki_transfer.py
View file @
62e9a30f
...
...
@@ -60,7 +60,7 @@ class CollectWikiTransferV1(object):
item_dict
[
"offline_score"
]
=
0.0
item_dict
[
"tips_name_type"
]
=
3
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
_v1
(
str
(
instance
.
name
)
.
lower
())
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
())
return
(
item_dict
,
suggest_list
)
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
...
...
trans2es/utils/doctor_transfer.py
View file @
62e9a30f
...
...
@@ -205,7 +205,7 @@ class DoctorTransferV1(object):
item_dict
[
"offline_score"
]
=
0.0
item_dict
[
"tips_name_type"
]
=
2
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
_v1
(
instance
.
name
)
suggest_list
=
get_tips_suggest_list
(
instance
.
name
)
return
(
item_dict
,
suggest_list
)
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
...
...
trans2es/utils/hospital_transfer.py
View file @
62e9a30f
...
...
@@ -98,7 +98,7 @@ class HospitalTransferV1(object):
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
_v1
(
str
(
name
)
.
lower
())
suggest_list
=
get_tips_suggest_list
(
str
(
name
)
.
lower
())
return
(
item_dict
,
suggest_list
)
except
:
...
...
trans2es/utils/itemwiki_transfer.py
View file @
62e9a30f
...
...
@@ -190,7 +190,7 @@ class ItemWikiTransferV1(object):
item_dict
[
"offline_score"
]
=
0.0
item_dict
[
"tips_name_type"
]
=
3
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
_v1
(
str
(
instance
.
name
)
.
lower
())
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
())
return
(
item_dict
,
suggest_list
)
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
...
...
trans2es/utils/productwiki_transfer.py
View file @
62e9a30f
...
...
@@ -60,7 +60,7 @@ class ProduceWikiTransferV1(object):
item_dict
[
"offline_score"
]
=
0.0
item_dict
[
"tips_name_type"
]
=
3
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
_v1
(
str
(
instance
.
name
)
.
lower
())
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
())
return
(
item_dict
,
suggest_list
)
except
:
...
...
trans2es/utils/tag_transfer.py
View file @
62e9a30f
...
...
@@ -283,7 +283,7 @@ class TagTransferV1(object):
item_dict
[
"offline_score"
]
=
0.0
item_dict
[
"tips_name_type"
]
=
0
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
_v1
(
str
(
instance
.
name
)
.
lower
())
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
())
logging
.
info
(
"item_dict:
%
s, suggest_list:
%
s"
%
(
item_dict
,
suggest_list
))
return
(
item_dict
,
suggest_list
)
except
:
...
...
trans2es/utils/wordresemble.py
View file @
62e9a30f
...
...
@@ -251,7 +251,7 @@ class WordResembleV1(object):
item_dict
[
"offline_score"
]
=
0.0
item_dict
[
"tips_name_type"
]
=
4
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
_v1
(
str
(
instance
.
keyword
)
.
lower
())
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
keyword
)
.
lower
())
return
(
item_dict
,
suggest_list
)
except
:
...
...
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