This file contains hidden or 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
import re | |
import json | |
import string | |
import requests | |
from langdetect import detect | |
def mostly_english(sentences): | |
"""Quick check to see if most sentences are probably English""" | |
en_count = 0 |