This document describes a system for extracting named entities and their relationships from unstructured text data using n-gram features. It uses a hidden Markov model to extract and classify entities into types like person, location, organization. It then uses a conditional random field with kernel approach to detect relationships between the extracted entities. The system takes unstructured text as input, performs preprocessing like tokenization and stop word removal, extracts n-gram, part-of-speech and lexicon features which are then combined and used to train the HMM model to classify entities and CRF model to detect relationships between entities.