func NewDetectorMaker() (*DetectorMaker, error) {
	weights, err := ReadFile("weights.w")
	if err != nil {
		return nil, err
	}
	return NewDetectorMakerWithWeights(bytes.NewBuffer(weights))
}
NewDetectorMaker creates a new detector maker
package injectsec
import (
	"bytes"
	"io"
	"github.com/project-flogo/microgateway/activity/sqld/injectsec/gru"
)
type DetectorMaker struct {
	*gru.DetectorMaker
}
func NewDetectorMakerWithWeights(weights io.Reader) (*DetectorMaker, error) {
	maker := gru.NewDetectorMaker()
	err := maker.Read(weights)
	if err != nil {
		return nil, err
	}
	return &DetectorMaker{
		DetectorMaker: maker,
	}, nil
}