Skip to content

Commit 9a3b364

Browse files
committed
update
1 parent 17cbf42 commit 9a3b364

File tree

6 files changed

+5
-152
lines changed

6 files changed

+5
-152
lines changed
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
# coding=utf-8
2-
import os
3-
4-
if os.name == "nt":
5-
import _locale
6-
_locale._gdl_bak = _locale._getdefaultlocale
7-
_locale._getdefaultlocale = (lambda *args: (_locale._gdl_bak()[0], 'utf8'))
8-
9-
from .core.formula_parser import *
10-
112
from .parser_pipeline import CathodeParserPipelineBuilder
123
from .regex_parser import CathodeRegExParser
134
from .postprocessing_tools import CathodeStoichiometricVariablesProcessing

cathodedataextractor/cathodetext2chem/core/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

cathodedataextractor/cathodetext2chem/core/formula_parser.py

Lines changed: 0 additions & 138 deletions
This file was deleted.

cathodedataextractor/information_extraction_pipe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ def extract(self, path: str):
103103
layer3=pp.results,
104104
layer4=final_records)
105105

106-
def _collect_corpus(self, head, tail) -> PipelineData:
106+
@staticmethod
107+
def _collect_corpus(head, tail) -> PipelineData:
107108

108109
TC = TagClassificationPar2Text()
109110
TC.get_abstract(head=head, tail=tail)
@@ -119,7 +120,7 @@ def _collect_corpus(self, head, tail) -> PipelineData:
119120
@staticmethod
120121
def _preprocess_csie(data: PipelineData) -> PipelineData:
121122
# preprocess
122-
year, doi, _intro, _experi, _partial_text = data[:6]
123+
year, doi, _intro, _experi, _partial_text = data[:5]
123124

124125
intro = _intro.strip(PARAGRAPH_SEPARATOR)
125126

requirements.txt

0 Bytes
Binary file not shown.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
long_description = open('README.md', encoding="utf8").read()
66
setup(
77
name='cathodedataextractor',
8-
version='0.0.2',
8+
version='0.0.3',
99
description='A document-level information extraction pipeline for layered cathode materials for sodium-ion batteries.',
1010
long_description=long_description,
1111
long_description_content_type='text/markdown',
@@ -17,7 +17,7 @@
1717
'word2number',
1818
'pdfminer.six >=20160614, <=20221105 ; python_version < "3.8"',
1919
'chemdataextractor2==2.2.2',
20-
'text2chem==0.0.2',
20+
'text2chem==0.0.3',
2121
'pymatgen',
2222
],
2323
license='MIT',

0 commit comments

Comments
 (0)