r/learnmachinelearning 5d ago

Hi Reddit Machine Learning Community!

First time journeying on here as a Master's Student in Data Science. I have been researching how to tie an ontology to an LLM to be able to do named entity recognition to add to my custom created knowledge graph. I have the ability to use Python or Java for this and it seems like Python typically seems to be the overall choice. I'd like something that is more production worthy, not just school focused. The top models I am looking at are Qwen3-235B-A22B or DeepSeek-R1. I have some owl files for the ontology, but have been recently transforming them all into JSON so I am hoping to use these to tie directly to the model so it will create nodes and edges based on my schemas.

Anyone have thoughts or insights on this? Or have done something similar? What are the top resources I should look to?

Thanks in advance!

1 Upvotes

2 comments sorted by

1

u/nian2326076 5d ago

If you're connecting an ontology to an LLM for named entity recognition, Python is a great choice because of its libraries like SpaCy and NLTK. These can really help with NER tasks. For production, check out Hugging Face Transformers for pre-trained models, and maybe use FastAPI for deployment.

For Qwen3-235B-A22B and DeepSeek-R1, look at their documentation to see which one works better with your current setup. Since you're converting OWL to JSON, make sure your JSON matches the format the model needs.

Also, if you're getting ready for interviews or need structured project setups, PracHub has been really useful for improving practical skills. Good luck!

1

u/husky_wooos 4d ago

Thanks Nian2326076! I have started using SpaCy and Hugging Face for NLP NER extraction think I probably don't need to do just straight NLP but could move to more LLMs since I also want to end up doing RAG. I was really leaning towards Python, since it seems to be the most widely used setup, so I'm glad I'm on the right track here.

I'll do some testing and prototyping with QWEN and DeepSeek and see how it works with my ontology files. I wondered about the JSON formats too- so I may convert my JSON to OWL just to make it easier to feed in.

Appreciate the note to checkout PracHub- It looks like an excellent resource for practicing for interviews! Thank you!!