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
go mod download | |
go build -v | |
./api-server | |
INFO [15:31:50] Developer portal integration enabled: true env=local | |
INFO [15:31:50] Starting with Nomad integration: darwin env=local | |
INFO [15:31:50] creating the tables (if not created) env=local | |
INFO [15:31:50] NomadActionLoopInterface listening for standard events... env=local | |
INFO [15:31:50] NomadActionLoopInterface listening for serialized events... env=local | |
INFO [15:31:50] creating the tables (if not created) env=local | |
INFO [15:31:50] creating the tables (if not created) env=local |
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
// search returns array of matching docs ranked by tf-idf score | |
// aka term frequency * inverse document frequency | |
// | |
// tf = # of occurences of term in document / # of words in document | |
// idf = log ( # of documents / # of documents with term ) | |
// tf-idf = tf * idf | |
// multi-term tf-idf = sum of tf-idf scores (per document) | |
import java.util.Arrays; |