1. A device, comprising: one or more memories; and one or more processors, communicatively coupled to the one or more memories, to: obtain a document, the document including a set of words or a set of characters; identify a skip value for the document, the skip value relating to a quantity of words or a quantity of characters that are to be skipped in an n-gram; determine one or more skip n-grams using the skip value for the document, a skip n-gram, of the one or more skip n-grams, including a sequence of one or more words or one or more characters with a plurality of occurrences in the document, the sequence of one or more words or one or more characters including a skip value quantity of words or characters within the sequence; extract one or more terms from the document based on the one or more skip n-grams, a term associated with the skip n-gram corresponding to the skip value quantity of words or characters within the sequence; generate a functional diagram representing the document using the one or more terms based on extracting the one or more terms; and provide, via a user interface, information identifying the functional diagram.