{
"models": [
{
"title":"Groq Llama 8b",
"provider":"openai",
"model": "llama3-8b-8192",
"apiBase": "https://api.groq.com/openai/v1",
"apiKey": "",
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
#%% | |
from audioop import mul | |
import json | |
from statistics import mean | |
from typing import List | |
from matplotlib.pyplot import cla | |
from requests import delete | |
import spacy | |
from spacy import matcher | |
import torch |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
import mlflow | |
import mlflow.sklearn | |
import json | |
import os | |
import tempfile | |
import pandas as pd |
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
""" | |
Simple function wrapper for the unpaywall API. | |
""" | |
import requests | |
YOUR_EMAIL = "[email protected]" # you should put your own email address here | |
def unpaywall(doi, retry=0, pdfonly=True): | |
"""Find legal open access version of paper""" |
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 csv | |
import sys | |
import argparse | |
import random | |
def main(): | |
ap = argparse.ArgumentParser(description="Split your NLC groundtruth into test and train data") | |
ap.add_argument("gtfile", help="Ground truth CSV file") |
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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# Citation classifier excite\n", | |
"\n", | |
"\n", | |
"GIT repo: `git clone [email protected]:james/excite.git` \n", |
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
class WatsonSTT(AbstractSTTEngine): | |
""" Watson Speech-To-Text implementation | |
""" | |
SLUG = "watson" | |
def __init__(self, app_username, app_password): | |
self._logger = logging.getLogger(__name__) | |
self._session = None | |
self._cookies = [] |
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
from __future__ import print_function | |
import elasticsearch | |
from itertools import chain | |
#scroll pointer timeout in minutes 1 minute is usually fine but you can increase if you get timeout errors | |
TIMEOUT = "1m" | |
def scrollr(client, scroll_id, f): |
I hereby claim:
- I am ravenscroftj on github.
- I am ravenscroftj (https://keybase.io/ravenscroftj) on keybase.
- I have a public key ASAytjzPSSzbpBFFSqymW2A-iAEwLc6PFVkpz9TUfsNpigo
To claim this, I am signing this object:
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
pub fn testfn(){ | |
info!("I am a tree"); | |
} |
NewerOlder