You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The canonical_target_name() function in utils.py accepts 4 parameters, but only 1 parameter is passed to the call to canonical_target_name() in parse_all.py.
@wkiri It seems there are two canonical_target_name() functions. One is in the utils.py script of the parser-indexer repo, and the other one is in the name_utils.py of the MTE repo.
The function in the MTE repo is easy to follow, but I am not sure if I fully understand the intention of the function in the parser-indexer repo. I also don't see how to prepare inputs to call the function in the parser-index repo (specifically for the targets and aliases parameters).
I think the function in the parser-indexer repo may be outdated and should be replaced with the one from the MTE repo. Could you please help take a look?
@stevenlujpl It looks to me like the additional arguments were added to allow target matching when known aliases were present. It seems that this is only used (and was probably motivated by) brat_ann_indexer.py, which reads .ann files and stores them in Solr. Since we are no longer using Solr, I think this entire file is deprecated - for MTE purposes at least.
This raises a larger question. The same comment about outdated Solr capabilities applies to csvindexer.py, indexer.py, and solr.py, all of which were set up with Solr infrastructure. Now that we've moved to SQLite, perhaps we should transition (copy?) the current *_parser.py files and json2brat.py back into the main MTE repository and remove the dependency on the parser-indexer repository. These files output JSON, without Solr involved. This would also allow the parsing files to access the same name_utils.py that is in the MTE repo without duplication. Please share your thoughts on this.
The
canonical_target_name()
function inutils.py
accepts 4 parameters, but only 1 parameter is passed to the call tocanonical_target_name()
inparse_all.py
.parser-indexer-py/src/parserindexer/parse_all.py
Lines 140 to 158 in 3f4a084
parser-indexer-py/src/parserindexer/utils.py
Lines 138 to 161 in 3f4a084
The text was updated successfully, but these errors were encountered: