Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhugeyicixin committed Jan 22, 2021
1 parent 9b68459 commit 16b9383
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions materials_entity_recognition/scripts/sent_ele_func.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from material_parser.material_parser import MaterialParser
import regex
from .utils import found_package
import regex

__author__ = 'Tanjin He'
__maintainer__ = 'Tanjin He, Ziqin (Shaun) Rong'
__email__ = '[email protected], [email protected]'

# constant
mp = MaterialParser(pubchem_lookup=False)
if found_package('material_parser'):
from material_parser.material_parser import MaterialParser
mp = MaterialParser(pubchem_lookup=False)
allNonMetalElements = set(['C', 'H', 'O', 'N', 'Cl', 'F', 'P', 'S', 'Br', 'I', 'Se'] + ['He', 'Ne', 'Ar', 'Kr', 'Xe', 'Rn'])
# element table by symbol of elements
elementTable = {
Expand Down

0 comments on commit 16b9383

Please sign in to comment.