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
2d063776
Commit
2d063776
authored
Jan 17, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'error_correction' into 'master'
大小写 See merge request
!46
parents
b99b01c2
b0764916
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
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
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 @
2d063776
...
...
@@ -33,7 +33,7 @@ class BrandWikiTransfer(object):
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
(
instance
.
name
)
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
()
)
return
(
item_dict
,
suggest_list
)
except
:
...
...
trans2es/utils/collectwiki_transfer.py
View file @
2d063776
...
...
@@ -33,7 +33,7 @@ class CollectWikiTransfer(object):
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
(
instance
.
name
)
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
()
)
return
(
item_dict
,
suggest_list
)
except
:
...
...
trans2es/utils/doctor_transfer.py
View file @
2d063776
...
...
@@ -97,7 +97,7 @@ class DoctorTransfer(object):
item_dict
[
"order_weight"
]
=
QueryWordAttr
.
get_doctor_query_word_weight
(
instance
.
name
)
item_dict
[
"results_num"
]
=
QueryWordAttr
.
get_query_results_num
(
instance
.
name
)
item_dict
[
"type_flag"
]
=
get_tips_word_type
(
instance
.
name
)
item_dict
[
"type_flag"
]
=
get_tips_word_type
(
str
(
instance
.
name
)
.
lower
()
)
item_dict
[
"offline_score"
]
=
0.0
item_dict
[
"tips_name_type"
]
=
2
...
...
trans2es/utils/hospital_transfer.py
View file @
2d063776
...
...
@@ -43,7 +43,7 @@ class HospitalTransfer(object):
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
(
name
)
suggest_list
=
get_tips_suggest_list
(
str
(
name
)
.
lower
()
)
return
(
item_dict
,
suggest_list
)
except
:
...
...
trans2es/utils/productwiki_transfer.py
View file @
2d063776
...
...
@@ -33,7 +33,7 @@ class ProduceWikiTransfer(object):
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
(
instance
.
name
)
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
()
)
return
(
item_dict
,
suggest_list
)
except
:
...
...
trans2es/utils/tag_transfer.py
View file @
2d063776
...
...
@@ -111,7 +111,7 @@ class TagTransfer(object):
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
(
instance
.
name
)
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
()
)
return
(
item_dict
,
suggest_list
)
except
:
...
...
trans2es/utils/wordresemble.py
View file @
2d063776
...
...
@@ -60,7 +60,7 @@ class WordResemble(object):
item_dict
[
"offline_score"
]
=
0.0
item_dict
[
"tips_name_type"
]
=
4
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
(
instance
.
keyword
)
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
keyword
)
.
lower
()
)
return
(
item_dict
,
suggest_list
)
...
...
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