This project serves as an example implementation of our Expression Measurement (REST) API processing raw text using our Typescript SDK.
-
Clone the repo with
git clone origin https://github.com/HumeAI/hume-api-examples.git
-
Navigate to project directory
cd typescript-raw-text-processor
-
Install dependencies with
npm i
-
Setup environment variables
a. Create
.env
file based off of.env.example
b. Copy/paste your API key in from the Portal.
-
Set configurations within the
src/index.ts
file.a. Specify which language.
b. Copy and paste the text to be processed.
c. Set Language Model configurations.
-
Run
npm run start
to process the specified text with the specified configurations and log predictions to the console.