-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87d072d
commit 7a1c9d3
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from hnhm import Flow | ||
|
||
from .user import User | ||
from .review import Review | ||
from .amazon_stage import AmazonStg | ||
from .user_review import LinkUserReview | ||
|
||
flow = ( | ||
Flow(source=AmazonStg(), business_time_field=AmazonStg.time) | ||
.load( | ||
User(), | ||
mapping={ | ||
User.user_id: AmazonStg.user_id, | ||
User.name: AmazonStg.name, | ||
}, | ||
) | ||
.load( | ||
Review(), | ||
mapping={ | ||
Review.review_id: AmazonStg.review_id, | ||
Review.user_id: AmazonStg.user_id, | ||
Review.text: AmazonStg.text, | ||
Review.rating: AmazonStg.rating, | ||
}, | ||
) | ||
.load(LinkUserReview()) | ||
) | ||
|
||
if __name__ == "__main__": | ||
print(flow.tasks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "hnhm" | ||
version = "0.0.3" | ||
version = "0.0.4" | ||
description = "hNhM – highly Normalized hybrid Model." | ||
authors = ["Arseny Egorov <[email protected]>"] | ||
|
||
|