Skip to content

Commit

Permalink
fix problem with multiple claims + update sample file
Browse files Browse the repository at this point in the history
  • Loading branch information
schuellersa committed Jul 28, 2021
1 parent a32cd84 commit a67282b
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 81 deletions.
6 changes: 5 additions & 1 deletion claim_extractor/extractors/fullfact.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def extract_claim_and_review(self, parsed_claim_review_page: BeautifulSoup, url:

# Create multiple claims from the main one and add change then the claim text and verdict (rating):
c = 0
while c < len(claim_text_list)-1:
while c <= len(claim_text_list)-1:
claims.append(claim)
claims[c].claim = claim_text_list[c]
claims[c].rating = claim_verdict_list[c]
Expand All @@ -228,6 +228,10 @@ def extract_claim_and_review(self, parsed_claim_review_page: BeautifulSoup, url:
# for local_claim in claim_text_list:
# claims[claim[len(claim)]] = claims[claim[len(claim)-1]]


#if ( url == "https://fullfact.org/online/daily-cases-vaccine-coverage/"):
# print("x")

# No Rating? No Claim?
if not claim.claim or not claim.rating:
print(url)
Expand Down
Loading

0 comments on commit a67282b

Please sign in to comment.