Skip to content

Commit 089501c

Browse files
author
Marcin Kardas
committed
Rename sota_extractor2 to axcell
1 parent f442bd3 commit 089501c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+42
-42
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sota_extractor2/data/elastic.py renamed to axcell/data/elastic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from elasticsearch_dsl import connections
1313

14-
from sota_extractor2.data.doc_utils import get_text, content_in_section, group_content, read_html, put_dummy_anchors, clean_abstract
14+
from axcell.data.doc_utils import get_text, content_in_section, group_content, read_html, put_dummy_anchors, clean_abstract
1515
from .. import config
1616
from pathlib import Path
1717
import sys
@@ -431,7 +431,7 @@ def cell_type_heuristic(orig_text, text, query):
431431

432432

433433
def display_fragment(f, cell_type="", display=True):
434-
from sota_extractor2.helpers.jupyter import display_html
434+
from axcell.helpers.jupyter import display_html
435435
cell_type = f" - <b> {cell_type} </b>" if cell_type else ""
436436
pre = f"<br/>{f.header}{cell_type}<br/>"
437437
body = " ... ".join(f.meta.highlight.text)

sota_extractor2/data/json.py renamed to axcell/data/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import gzip
55
import pprint
66
import requests
7-
from sota_extractor2 import config
7+
from axcell import config
88
#%%
99
def to_snake_case(name):
1010
#https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case

sota_extractor2/data/references.py renamed to axcell/data/references.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
import diskcache as dc
1818

19-
from sota_extractor2 import config
20-
from sota_extractor2.data.elastic import Reference2, ID_LIMIT
19+
from axcell import config
20+
from axcell.data.elastic import Reference2, ID_LIMIT
2121

2222

2323
def just_letters(s, _tok_re = re.compile(r'[^\p{L}]+')):
File renamed without changes.

0 commit comments

Comments
 (0)