Skip to content

Commit

Permalink
Fix command-line interface imports. Increment t2t version
Browse files Browse the repository at this point in the history
  • Loading branch information
rsgoncalves committed Aug 15, 2023
1 parent 6845220 commit 8e85ee7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions text2term/__main__.py
Original file line number Diff line number Diff line change
@@ -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__":
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion text2term/config.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "3.0.1"
VERSION = "3.0.2"

0 comments on commit 8e85ee7

Please sign in to comment.