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 code is written at BigVision LLC. It is based on the OpenCV project. It is subject to the license terms in the LICENSE file found in this distribution and at http://opencv.org/license.html | |
# Usage example: python3 object_detection_yolo.py --video=run.mp4 | |
# python3 object_detection_yolo.py --image=bird.jpg | |
import cv2 as cv | |
import argparse | |
import sys | |
import numpy as np | |
from urllib.request import urlopen | |
import os |
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
import json | |
import requests | |
from bottle import debug, request, route, run | |
GRAPH_URL = "https://graph.facebook.com/v2.6" | |
VERIFY_TOKEN = 'YOUR_VERIFY_TOKEN' | |
PAGE_TOKEN = 'YOUR_PAGE_TOKEN' | |
def send_to_messenger(ctx): |
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
from revscoring.features import wikitext | |
from revscoring.languages import english | |
char_based = [ | |
wikitext.revision.chars, | |
wikitext.revision.whitespace_chars, | |
wikitext.revision.markup_chars, | |
wikitext.revision.cjk_chars, | |
wikitext.revision.entity_chars, | |
wikitext.revision.url_chars, |