We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
# Setup import holmes_extractor as holmes ontology = holmes.Ontology("holmes_test.owl") manager = holmes.Manager("en_core_web_trf", ontology=ontology, number_of_workers=1) # Register search phrase manager.register_search_phrase("An ENTITYORG takes over an ENTITYORG") # Parse documents manager.parse_and_register_document("Royal Bank of Scotland announces it intends to acquire Brewin Dolphin", "1") manager.parse_and_register_document("Chipmaker MaxLinear Inc announced on Thursday it will buy Silicon Motion Technology Corp for nearly $4 billion.", "2") manager.parse_and_register_document("Last month, cybersecurity company Mandiant was purchased by Alphabet", "3") manager.parse_and_register_document("The Datto takeover by Kaseya", "4") # Perform matching matches = manager.match() # Check all documents matched print(len(matches)) # -> 4 # Extract companies doing the taking over print([match['word_matches'][0]['document_phrase'] for match in matches]) # -> ['Royal Bank', 'Chipmaker MaxLinear Inc', 'Alphabet', 'Kaseya'] # Extract companies being taken over print([match['word_matches'][2]['document_phrase'] for match in matches]) # -> ['Brewin Dolphin', 'Silicon Motion Technology Corp', 'cybersecurity company Mandiant', 'Datto']
Update the engine to use holmes to track dates and accquistions.
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: