I want a dataset of common n-grams and their log likelihoods. Normally I would download the Google Books Ngram Exports , but I wonder if I can generate a better dataset using a large language model. For example, this script uses llama_cpp.Llama.create_completion to find likely 3-grams starting with "welcome to": from llama_cpp import Llama # pip install llama-cpp-python llm = Llama.from_pretrained(...
Originally asked by evashort on Stack Exchange (stackoverflow) (CC BY-SA 4.0).