Natural Language Preprocessing Library for health data and more


from nlpre import titlecaps, dedash, identify_parenthetical_phrases from nlpre import replace_acronyms, replace_from_dictionary ABBR = identify_parenthetical_phrases()(text) parsers = [dedash(), titlecaps(), replace_acronyms(ABBR), replace_from_dictionary(prefix='MeSH_')] for f in parsers: text = f(text) print(text)
Author info


Categories scientific

Submit your project

If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the project idea label on the issue tracker.

Read the docsJSON source