Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
重
重点类信息提取
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ZGC_INDEX
重点类信息提取
Commits
4fdf2658
Commit
4fdf2658
authored
Apr 08, 2021
by
Jialin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品品牌分析参数调整
parent
6c787da6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
产品品牌分析.py
公共代码/产品品牌分析.py
+2
-2
扫描仪产品品牌分析.xlsx
公共代码/扫描仪产品品牌分析.xlsx
+0
-0
激光打印机产品品牌分析.xlsx
公共代码/激光打印机产品品牌分析.xlsx
+0
-0
No files found.
公共代码/产品品牌分析.py
View file @
4fdf2658
...
...
@@ -8,7 +8,7 @@ import re
import
xlsxwriter
def
brand_washing
(
filepath
,
thre
=
0.
4
,
inner_thre
=
0.5
,
a
=
1
,
sheet_name
=
0
):
def
brand_washing
(
filepath
,
thre
=
0.
5
,
inner_thre
=
0.5
,
a
=
1
,
sheet_name
=
0
):
# filepath:文件路径,thre为两个品牌下型号重合率阈值,inner_thre为两个品牌下某条型号内关键词重合率阈值,a为权重调整,sheet_name为表单名
df
=
pd
.
read_excel
(
filepath
,
sheet_name
=
sheet_name
,
converters
=
{
'产品编码'
:
str
})
# 处理缺失值
...
...
@@ -244,6 +244,6 @@ def brand_washing(filepath,thre=0.4,inner_thre=0.5,a=1,sheet_name=0):
workbook
.
close
()
if
__name__
==
'__main__'
:
filepath
=
'E:
\\
ZDZC
\\
扫描仪
参数确认.xlsx'
filepath
=
'E:
\\
ZDZC
\\
激光打印机
参数确认.xlsx'
brand_washing
(
filepath
)
公共代码/
brand_filter
.xlsx
→
公共代码/
扫描仪产品品牌分析
.xlsx
View file @
4fdf2658
File moved
公共代码/激光打印机产品品牌分析.xlsx
View file @
4fdf2658
No preview for this file type
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