Implementation of the ClausIE information extraction system for Python+spaCy

ClausIE, a novel, clause-based approach to open information extraction, which extracts relations and their arguments from natural language text


import spacy import claucy nlp = spacy.load("en") claucy.add_to_pipe(nlp) doc = nlp("AE died in Princeton in 1955.") print(doc._.clauses) # Output: # <SV, AE, died, None, None, None, [in Princeton, in 1955]> propositions = doc._.clauses[0].to_propositions(as_text=True) print(propositions) # Output: # [AE died in Princeton in 1955, AE died in 1955, AE died in Princeton
View more
Author info

Emmanouil Theofanis Chourdakis


Categories pipeline scientific research

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