Skip to content

forlulz/text-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Text-analysis

Requirements

  • JDK 17 or greater
  • TextRazor API key
  • Docker (optional)

Running unit tests

export JAVA_HOME=/path/to/jdk
./mvnw clean test

Running unit and integration tests

export JAVA_HOME="/path/to/jdk"
export TEXTRAZOR_API_KEY="your TextRazor API key"
./mvnw clean verify

Building Docker image

  • using Docker
docker build -t your/docker-image-name .
  • using Maven
./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=your/docker-image-name

Running app

  • using docker
docker run \
  -p 8080:8080 \
  --env TEXTRAZOR_API_KEY="your TextRazor API key" \
  your/docker-image-name
  • using Maven
export JAVA_HOME="/path/to/jdk"
export TEXTRAZOR_API_KEY="your TextRazor API key"
./mvnw spring-boot:run
  • running jar file
export TEXTRAZOR_API_KEY="your TextRazor API key"
java -jar /path/to/jar-file.jar

Usage

  • POST contents from a text file to /api/analysis/persons route
  • jq
curl -sF "text=$(cat /path/to/text-file.txt)" localhost:8080/api/analysis/persons | jq

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published