mit-lcp / bloatectomy Goto Github PK
View Code? Open in Web Editor NEWA python package for removing duplicate text in clinical notes or other documents
License: GNU General Public License v3.0
A python package for removing duplicate text in clinical notes or other documents
License: GNU General Public License v3.0
text = '''Assessment and Plan
61 yo male Hep C cirrhosis
Abd pain:
-other labs: PT / PTT / INR:16.6// 1.5, CK / CKMB /
ICU Care
-other labs: PT / PTT / INR:16.6// 1.5, CK / CKMB /
Assessment and Plan
'''
bloatectomy(text)
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
Cell In[44], line 10
1 # bloatectomy(nur_df.loc[0, 'progress_notes'])
2 text = '''Assessment and Plan
3 61 yo male Hep C cirrhosis
4 Abd pain:
(...)
8 Assessment and Plan
9 '''
---> 10 bloatectomy(text)
File ~/.local/lib/python3.10/site-packages/bloatectomy/bloatectomy.py:41, in bloatectomy.__init__(self, input_text, path, filename, display, style, output, output_numbered_tokens, output_original_tokens, regex1, regex2, postgres_engine, postgres_table)
38 self.postgres_table = postgres_table
39 self.engine = postgres_engine
---> 41 assert float(sys.version[0:3]) >= 3.7, "Must use python 3.7.0 or higher for the regular expressions to work correctly."
43 try:
44 if input_text.split('.')[1] == 'docx' or input_text.split('.')[1] == 'doc':
AssertionError: Must use python 3.7.0 or higher for the regular expressions to work correctly.
Now it's the era of python 3.10, it would be better to change to sys.version[0:4].
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.