1. A method comprising: receiving a document; applying one or more tags to the document, each tag applied to a term, each tag representing a part of speech; extracting one or more terms from the document based on the tags; determining a frequency parameter for each of the one or more extracted terms, wherein the frequency parameter is proportional to a logarithm of a total number of documents in the domain ontology divided by a number of documents in which the term appears; determining, based on the frequency parameter associated with each of the extracted terms, whether a domain ontology comprises the one or more extracted terms; and augmenting, if the domain ontology does not comprise the one or more extracted terms, such that the domain ontology comprises the one or more extracted terms.
1. A method comprising: receiving a document; applying one or more tags to the document, each tag applied to a term, each tag representing a part of speech; extracting one or more terms from the document based on the tags; determining a frequency parameter for each of the one or more extracted terms, wherein the frequency parameter is proportional to a logarithm of a total number of documents in the domain ontology divided by a number of documents in which the term appears; determining, based on the frequency parameter associated with each of the extracted terms, whether a domain ontology comprises the one or more extracted terms; and augmenting, if the domain ontology does not comprise the one or more extracted terms, such that the domain ontology comprises the one or more extracted terms. 6. The method of claim 1 , wherein extracting the one or more terms from the document based on the tag comprises: extracting one or more nouns and one or more verbs from the document; extracting symptoms from the document with one or more nouns and one or more verbs extracted; and outputting the one or more nouns, verbs, and symptoms to a weight assignment module.