From 8e85ee7d0724daaebbfea559b9bb68e08fd144e9 Mon Sep 17 00:00:00 2001 From: Rafael Goncalves Date: Tue, 15 Aug 2023 14:24:50 -0400 Subject: [PATCH] Fix command-line interface imports. Increment t2t version --- text2term/__main__.py | 12 +++++++----- text2term/config.py | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/text2term/__main__.py b/text2term/__main__.py index 34e1d39..39fa830 100644 --- a/text2term/__main__.py +++ b/text2term/__main__.py @@ -1,7 +1,8 @@ import argparse import os import sys -from t2t import map_file, cache_ontology, cache_exists +from t2t import map_terms, cache_ontology +from onto_cache import cache_exists from mapper import Mapper if __name__ == "__main__": @@ -56,7 +57,8 @@ if acronym != "": cache_ontology(target, acronym, iris) target = acronym - map_file(arguments.source, target, output_file=arguments.output, csv_columns=csv_columns, - excl_deprecated=arguments.excl_deprecated, mapper=mapper, max_mappings=arguments.top_mappings, - min_score=arguments.min_score, base_iris=iris, save_graphs=arguments.save_term_graphs, - save_mappings=True, separator=arguments.separator, use_cache=cache_exists(target), term_type=arguments.term_type) + map_terms(arguments.source, target, output_file=arguments.output, csv_columns=csv_columns, + excl_deprecated=arguments.excl_deprecated, mapper=mapper, max_mappings=arguments.top_mappings, + min_score=arguments.min_score, base_iris=iris, save_graphs=arguments.save_term_graphs, + save_mappings=True, separator=arguments.separator, use_cache=cache_exists(target), + term_type=arguments.term_type) diff --git a/text2term/config.py b/text2term/config.py index 2e42105..a2ded2f 100644 --- a/text2term/config.py +++ b/text2term/config.py @@ -1 +1 @@ -VERSION = "3.0.1" \ No newline at end of file +VERSION = "3.0.2"