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 java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.net.URLEncoder; | |
import java.io.DataOutputStream; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.io.InputStream; | |
import java.lang.StringBuffer; | |
public class App |
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 pandas as pd | |
import requests | |
# Your API key goes here. | |
API_KEY = '' | |
raw_df = pd.read_csv('linkedin-sf.csv', encoding='utf-8', skiprows=1, | |
error_bad_lines=False) |
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 requests | |
import json | |
data = { | |
'text_list': ["This is a text to try language detection.", | |
"This is some more text"] | |
} | |
response = requests.post( | |
"https://api.monkeylearn.com/v2/classifiers/cl_oJNMkt2V/classify/", |
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
# -*- coding: utf-8 -*- | |
import csv | |
import codecs, cStringIO | |
from argparse import ArgumentParser | |
from monkeylearn import MonkeyLearn | |
class UTF8Recoder: | |
""" |
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
# -*- coding: utf-8 -*- | |
import csv | |
import time | |
import re | |
import codecs, cStringIO | |
from argparse import ArgumentParser | |
import tweepy | |