The invention discloses a lightweight
knowledge graph rapid construction method and
system based on an NLP technology. The method comprises the steps of preprocessing an unstructured text and segmenting the unstructured text into semantic segments;
unsupervised clustering is combined with the contour coefficient to determine the optimal clustering number, and a
semantic association fragment cluster is obtained; performing word segmentation, part-of-speech tagging, NER and
entity linking on the fragment cluster, extracting an entity and initial relationship, and fusing
semantic similarity, TF-IDF word frequency
collaboration degree and co-occurrence frequency to calculate a relationship edge weight; constructing a lightweight
knowledge graph; in the question and answer stage, questions are disassembled through a
process engine, related sub-graphs are retrieved, and answers with reasoning links are generated. The
system correspondingly comprises a text preprocessing module, a clustering module, an entity relation
processing module, a graph construction module, a question and answer reasoning module and a storage module. According to the method, the construction cost is reduced, the
interpretability and the module
coupling degree are improved, multiple scenes such as government and enterprise public opinions and medical assistance are adapted, and the problems of weak generalization, poor real-time performance and'
black box 'in the traditional technology are solved.