Skip to content

Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.

2.7 KB
Raw Blame
"""Shared test data for hyperextract tests."""

SHORT_TEXT = """John Smith is a software engineer at TechCorp. He has 10 years of experience in software development."""

LONG_TEXT = """
Tesla, Inc. was founded in 2003 by Martin Eberhard and Marc Tarpenning. 
Elon Musk joined in 2004 and became the company's CEO. The company is headquartered in Palo Alto, California.
Tesla designs, develops, manufactures, and sells electric vehicles, battery energy storage, and solar products.
The company's mission is to accelerate the world's transition to sustainable energy.
In 2023, Tesla delivered over 1.8 million vehicles globally.
"""

MULTIPLE_PERSONS_TEXT = """
Alice Johnson works as a data scientist at Google. She graduated from MIT with a PhD in Machine Learning.
Bob Williams is a product manager at Meta. He has 8 years of experience in tech product management.
Carol Davis is a UX designer at Apple. She studied at Stanford and has won several design awards.
David Chen is a software engineer at Amazon. He specializes in distributed systems and cloud computing.
"""

MULTIPLE_COMPANIES_TEXT = """
Apple Inc. is a technology company headquartered in Cupertino, California. It was founded in 1976 by Steve Jobs, Steve Wozniak, and Ronald Wayne. Apple designs and manufactures smartphones, computers, tablets, and wearable devices.

Microsoft Corporation is a software company based in Redmond, Washington. It was founded in 1975 by Bill Gates and Paul Allen. Microsoft develops operating systems, productivity software, and cloud services.

Google LLC is a technology company headquartered in Mountain View, California. It was founded in 1998 by Larry Page and Sergey Brin. Google specializes in internet-related services and products.
"""

GRAPH_TEXT = """
Apple was founded by Steve Jobs in Cupertino, California. Steve Jobs later became CEO of Apple.
Apple acquired NeXT in 1996, which brought Steve Jobs back to Apple.
Tim Cook became Apple's CEO after Steve Jobs stepped down in 2011.
Apple collaborated with IBM in 2014 to compete against enterprise mobile computing.
"""

KEYWORD_TEXT = """
Machine learning is a subset of artificial intelligence that enables systems to learn from data.
Deep learning uses neural networks with multiple layers to model complex patterns.
Natural language processing focuses on enabling computers to understand human language.
Computer vision allows machines to interpret and understand visual information from the world.
"""

PERSON_LIST_TEXT = """
John is a software engineer with 5 years of experience at Google.
Mary works as a product manager at Facebook.
Tom is a data scientist at Amazon specializing in recommendation systems.
Sarah is a UX designer at Apple with expertise in mobile interfaces.
Michael is a DevOps engineer at Microsoft.
"""