Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GGNoWayBack committed Feb 13, 2024
1 parent 17cbf42 commit 9a3b364
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 152 deletions.
9 changes: 0 additions & 9 deletions cathodedataextractor/cathodetext2chem/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
# coding=utf-8
import os

if os.name == "nt":
import _locale
_locale._gdl_bak = _locale._getdefaultlocale
_locale._getdefaultlocale = (lambda *args: (_locale._gdl_bak()[0], 'utf8'))

from .core.formula_parser import *

from .parser_pipeline import CathodeParserPipelineBuilder
from .regex_parser import CathodeRegExParser
from .postprocessing_tools import CathodeStoichiometricVariablesProcessing
1 change: 0 additions & 1 deletion cathodedataextractor/cathodetext2chem/core/__init__.py

This file was deleted.

138 changes: 0 additions & 138 deletions cathodedataextractor/cathodetext2chem/core/formula_parser.py

This file was deleted.

5 changes: 3 additions & 2 deletions cathodedataextractor/information_extraction_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def extract(self, path: str):
layer3=pp.results,
layer4=final_records)

def _collect_corpus(self, head, tail) -> PipelineData:
@staticmethod
def _collect_corpus(head, tail) -> PipelineData:

TC = TagClassificationPar2Text()
TC.get_abstract(head=head, tail=tail)
Expand All @@ -119,7 +120,7 @@ def _collect_corpus(self, head, tail) -> PipelineData:
@staticmethod
def _preprocess_csie(data: PipelineData) -> PipelineData:
# preprocess
year, doi, _intro, _experi, _partial_text = data[:6]
year, doi, _intro, _experi, _partial_text = data[:5]

intro = _intro.strip(PARAGRAPH_SEPARATOR)

Expand Down
Binary file modified requirements.txt
Binary file not shown.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
long_description = open('README.md', encoding="utf8").read()
setup(
name='cathodedataextractor',
version='0.0.2',
version='0.0.3',
description='A document-level information extraction pipeline for layered cathode materials for sodium-ion batteries.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand All @@ -17,7 +17,7 @@
'word2number',
'pdfminer.six >=20160614, <=20221105 ; python_version < "3.8"',
'chemdataextractor2==2.2.2',
'text2chem==0.0.2',
'text2chem==0.0.3',
'pymatgen',
],
license='MIT',
Expand Down

0 comments on commit 9a3b364

Please sign in to comment.