Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
20200519040-Project2
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
20200519040
20200519040-Project2
Commits
07b72db4
Commit
07b72db4
authored
Sep 14, 2020
by
Yuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
41de1f9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
submit/review
+21
-0
No files found.
submit/review
0 → 100644
View file @
07b72db4
Summary:
代码还有很多问题,请好好修改下
Detailed Comments:
1、Review这个类extract_aspects、compute_doc_aspects这两个函数都没有空格,都不在类中;如果是单独的函数,那就没必要写这个self变量;
2、BusinessManager这个类中的get_business_ids函数,又不写self,要么就写成静态方法;
3、return [ review for review in reviews for reviews in list(self.data.values())]这个用法错误,这个顺序就是按照两个for循环的顺序来嵌套的,你这里的顺序错误
4、项目中很多导包的错误,因为没有导入包,比如review_segment = get_segment(review, aspect)
score = sentiment_model.predict(review_segment); get_segment、threshold、random等这些都没有导入包
5、你的model代码中也很多导包,或者是变量没有定义的错误
Overall Score: 70
--------------------------------------------------------------------------------------------------------------------------
Thanks for your efforts.
-Your instructor
\ No newline at end of file
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