Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Make instantiation of Grounder more flexible #15
This PR allows the user to either specify the
As a consequence, the redundant callings of
This allows the user to either specify terms_file as: - None -> look up the path and download the data from Amazon if necessary (old functionality) - str -> look up the grounding terms file at the given path - dict -> use a pre-made dictionary of normalized names to terms
Becuase of the functionality added in the last commit, the grounding terms path is looked up automatically (using the same get_grounding_terms() function) if none is given.