-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates and adds the raw-text-processor example (#71)
Co-authored-by: Norman Bukingolts <norman@hume.ai> Co-authored-by: zach <zachary.greathouse@hume.ai>
- Loading branch information
1 parent
65c97c4
commit acaef9f
Showing
9 changed files
with
558 additions
and
17 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
HUME_API_KEY='<YOUR API KEY>' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Hume Raw Text Processor | ||
|
||
## Summary | ||
|
||
This project serves as an example implementation of our Expression Measurement (REST) API processing raw text using our [Typescript SDK](https://www.npmjs.com/package/hume). | ||
|
||
## Running Locally | ||
|
||
1. Clone the repo with `git clone origin https://github.com/HumeAI/hume-api-examples.git` | ||
|
||
2. Navigate to project directory `cd typescript-raw-text-processor` | ||
|
||
3. Install dependencies with `npm i` | ||
|
||
4. Setup environment variables | ||
|
||
a. Create `.env` file based off of `.env.example` | ||
|
||
b. Copy/paste your API key in from the [Portal](https://beta.hume.ai/settings/keys). | ||
|
||
5. 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. | ||
|
||
6. Run `npm run start` to process the specified text with the specified configurations and log predictions to the console. |
Oops, something went wrong.