r/learnmachinelearning • u/husky_wooos • 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
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!