Skip to content

Commit

Permalink
PyPi Upload Bugs
Browse files Browse the repository at this point in the history
Fixes a minor bug needed to upload to PyPi. Also corrects the README for an example in caching.
  • Loading branch information
paynejason committed Nov 16, 2022
1 parent 6684294 commit abbcb3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ df2 = text2term.map_terms(["asthma", "colon cancer"], "http://www.ebi.ac.uk/efo/
Below is an example of caching, assuming the same imports as above:
```
text2term.cache_ontology("http://www.ebi.ac.uk/efo/efo.owl", "EFO")
df1 = text2term.map_file(unstruct_terms.txt, "EFO")
df2 = text2term.map_terms(["asthma", "colon cancer"], "EFO")
df1 = text2term.map_file(unstruct_terms.txt, "EFO", use_cache=True)
df2 = text2term.map_terms(["asthma", "colon cancer"], "EFO", use_cache=True)
text2term.clear_cache("EFO")
```

Expand Down
4 changes: 4 additions & 0 deletions text2term/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from .t2t import map_terms
from .t2t import map_file
from .t2t import cache_ontology
from .t2t import cache_ontology_set
from .t2t import clear_cache
from .t2t import cache_exists
from .mapper import Mapper

0 comments on commit abbcb3b

Please sign in to comment.