This repository has been archived by the owner on Dec 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#36: Update rules for better accuracy
These rules and coefficients yield the following accuracy based on a training corpus of 50 product pages from our top 5 sites (Amazon, Ebay, Walmart, Best Buy and Home Depot): * 100% for product 'image' * 96% for product 'title' * 94% for product 'price' Product 'price' and 'title' features have proximity rules based on the highest scoring product 'image' element. For now, this is done by accessing the image fnode using an internal '_ruleset' object; @erikrose is working on better support for this use case in the very near future, so this implementation can be improved at that time.
- Loading branch information
1 parent
25836b7
commit 5b0aba8
Showing
4 changed files
with
227 additions
and
78 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules | |
web-ext-artifacts | ||
build | ||
gecko.log | ||
.DS_Store |
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,9 +1,11 @@ | ||
{ | ||
"largerImageCoeff": 3, | ||
"largerFontSizeCoeff": 1, | ||
"hasDollarSignCoeff": 3, | ||
"hasTitleInIDCoeff": 10, | ||
"hasTitleInClassNameCoeff": 5, | ||
"isHiddenCoeff": -100, | ||
"isHeaderElementCoeff": 10 | ||
"largerImageCoeff": 2, | ||
"largerFontSizeCoeff": 7, | ||
"hasDollarSignCoeff": 8, | ||
"hasPriceInIDCoeff": 17, | ||
"hasPriceInClassNameCoeff": 2, | ||
"isAboveTheFoldPriceCoeff": 33, | ||
"isAboveTheFoldImageCoeff": 13, | ||
"isNearbyImageXAxisCoeff": 5, | ||
"hasPriceishPatternCoeff": 15 | ||
} |
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
Oops, something went wrong.