func ParseOutput(rawjson []byte) (root *document.Document, err error) {
	err = json.Unmarshal(rawjson, &root)
	return root, err
}
ParseOutput parse a json output generated by Stanford CoreNLP.
package corenlp
import (
	"encoding/json"
	"io/ioutil"
	"github.com/hironobu-s/go-corenlp/connector"
	"github.com/hironobu-s/go-corenlp/document"
)
func Annotate(p connector.Connector, text string) (root *document.Document, err error) {
	response, err := p.Run(text)
	if err != nil {
		return nil, err
	}
	defer response.Close()
	rawjson, err := ioutil.ReadAll(response)
	if err != nil {
		return nil, err
	}
	return ParseOutput(rawjson)
}