Saturday, March 4, 2023
Show HN: gpt-graph. A simple, GPT-3 text to entity-relation graph generator https://ift.tt/KlhS9kf
Show HN: gpt-graph. A simple, GPT-3 text to entity-relation graph generator Hi HN! This is a simple text to entity-relation graph generator, powered by gpt-3 davinci model. The purpose is to feed it actual written data, to obtain a graph representation of entities and relationships mentioned in the text. Also, being able to identify entity attributes like gender, size, age ... My initial goal, was to make it able to process a large amount of text into a big single graph. The problem being the 4000 token limit the model has, I decided to take the approach of feeding the text in batches, and try to merge the incoming graph with the existing information each time. This is done by comparing the incoming node labels with those already in the graph, adding the new information to the existing nodes. This works somewhat, but sometimes entities get duplicated if they are mentioned slightly differently in the text. The comparation method could use some improvement clearly. A nice feature, is that you get to decide what types you want to extract. So if, for example, you are interested only in people, and companies in the text, you can tell the model to stick to that. You can also leave the types to the model discretion. Also, the application allows for saving / loading graphs to json files. These files can be used with Cytoscape Desktop Application, which is a nice side effect of using cytoscape.js. in the UI. I think tools like this can really be of help when going through dense documentation. To have a visual representation of the concepts, entities or whatever, can be really helpful in education, investigation, legal ... Would love to hear your thoughts on how this could be improved. https://ift.tt/3oDExYm March 5, 2023 at 05:17AM
Subscribe to:
Post Comments (Atom)
Show HN: val – An arbitrary precision calculator language https://ift.tt/1JxjPhf
Show HN: val – An arbitrary precision calculator language Wrote this to learn more about the `chumsky` parser combinator library, rustyline,...
-
Show HN: High school robotics code/CAD/design binder release Hello HN! My name is Patrick, and I am a junior at my High School’s FRC robotic...
-
Show HN: D&D meets Siri – Interactive voice adventure Hey HN! I've been building tooling for voice-driven apps over the past few mon...
-
Show HN: I Made an AI Social Media Manager to Automate Content Creation Hey HN, I am a Solopreneur, and I love building apps to automate bor...
No comments:
Post a Comment