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 chromadb | |
import openai | |
import os | |
from tqdm import tqdm | |
import tiktoken | |
from chromadb.errors import NotEnoughElementsException | |
import re | |
from colorama import Fore, Style | |
# Instructions (assumes Windows OS) |
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 json | |
import spacy | |
import zipfile | |
import os | |
import pickle | |
# File paths | |
zip_path = r"pathtotwitterarchive.zip" # Path to zipped twitter archive | |
extract_path = r"somepath\twitter_data" # Path to extract twitter data | |
embeddings_path = r"somepath\tweet_embeddings.pkl" # Path to save embeddings |
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_name SignalWaiter | |
signal AllFinished | |
# Internal variables | |
var _active_nodes = {} | |
var _signal_connections = {} | |
var _callables = [] | |
## External method to add a node, its callable, and the signal to listen for. |
OlderNewer