Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
absl-py==0.9.0 | |
appdirs==1.4.4 | |
argcomplete==1.10.3 | |
arrow==0.15.4 | |
astor==0.8.1 | |
beautifulsoup4==4.9.1 | |
binaryornot==0.4.4 | |
certifi==2017.7.27.1 | |
chardet==3.0.4 | |
clarifai==2.0.32 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 pandas as pd | |
data = pd.read_csv("/home/ec2-user/SageMaker/gpt-2-simple/gpt_2_simple/src/training.1600000.processed.noemoticon.csv", | |
encoding='latin-1', | |
names=["Label", | |
"tweet_id", | |
"Date", "Query", | |
'Username', | |
'tweet']) | |
data['tweet'] = '<|startoftext|>' + data['tweet'].astype(str) + "<|endoftext|>" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"package_name": "prose", | |
"requirements": [ | |
{"name" : "prose-resolver", | |
"UUID" : "ed721f86-c8ae-4360-af40-8c4d0b9485bb", | |
"hash" : "0c63a75b845e4f7d01107d852e4c2485c51a50aaaa94fc61995e71bbee983a2ac3713831264adb47fb6bd1e058d5f004", | |
"author" : {"name":"zitterbewegung", | |
"public_key": "asdf" | |
}, |
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 spherogram | |
def generate_random_table(crossing_number, num_components, table_size): | |
""" | |
Requires spherogram library (pip install sphereogram). | |
""" | |
problem_set = [spherogram.random_link(crossing_number, num_components=num_components, initial_map_gives_link=True, alternating=True) for x in range(1,table_size)] | |
return problem_set | |
poly = [x.alexander_polynomial() for x in generate_random_table(10, 1, 10)] | |
poly |
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
print(responsejson) | |
print("3rd Concept" +get_concept(responsejson, 2)) | |
print("4rd Concept" +get_concept(responsejson, 3)) | |
print("5th Concept" +get_concept(responsejson, 4)) | |
resp = MessagingResponse() | |
resp.message("I think it might be one of the following: " + | |
get_concept(responsejson, 0) + " or " + | |
get_concept(responsejson, 1) + " or " + | |
get_concept(responsejson, 2) + " or " + | |
get_concept(responsejson, 3)) |