The Form is the Substance: Classification of Genres in Text
Paper · 2001 · Nigel Dewdney, Carol VanEss-Dykema and Richard MacMillan
Summary
Searching for a house for sale brings up documents that mention houses, only some of which are offers to sell one. If the results carry genre labels, the search can ask for advertisements as well as a matching word. In the authors’ example, precision rises from 2% for the query house to 43% when that query is restricted to ads. The restriction also loses a relevant result. This example uses a collection whose genre labels are already known. The main experiment asks whether a system can learn to assign such labels from the documents themselves. The question matters for information retrieval and for sorting incoming mail, where the kind of document can matter as much as its subject.
For the authors, a genre is a recognizable way of presenting information. A bulletin board post, a broadcast news transcript, and a newswire story can discuss the same event while differing in vocabulary, grammar, punctuation, and layout. The authors compare a representation based on selected word frequencies with one based on features of presentation. The latter includes approximate proportions of grammatical categories, verb tense and shifts in tense, frequencies of groups of related words, measures of length and readability, and features of typography and layout. The paper tests each representation separately and then supplies both together.
In cross-validation on 9,705 documents assigned to seven genres, a support vector machine reached 85.4% average recall with word features, 87.1% with presentation features, and 92.1% with the combined representation. Each document had to receive a genre, so recall in this experiment is also the proportion classified correctly. The decision tree likewise performed better with presentation than with words alone. Naïve Bayes went in the other direction, falling to 64.0% on presentation alone. All three classifiers obtained their best forced-decision results when they had access to both feature sets.
The authors also test a policy that lets a classifier withhold weak predictions. With both feature sets, the support vector machine reaches 94.9% precision among the labels it assigns, with 84.0% recall across all documents and an F1 of 89.1%. The experiment shows that measurable conventions of presentation can carry substantial evidence about genre and that selected vocabulary can add evidence of its own. How much an automatic genre filter would improve search or mail sorting remains an application question. The search example uses known tags, and the classification experiment holds out documents from the same collection used to develop the word inventory.
Deep dive: The Form is the Substance: Classification of Genres in Text
The Form is the Substance tests how wording, grammar, and layout help distinguish text genres, and what genre labels can add to search. · about 36 minutes to read
The problem and its context
What a genre label adds
A document can be described by what it is about or by the kind of communication it contains. A report on an election and a message board discussion of the same election fit under a common subject. The report and the discussion can still differ in how they introduce people and events, how their sentences are put together, and how participants and sections are marked. The paper takes these recurring conventions as grounds for a separate task in text classification. Its target labels describe document kinds such as classified advertisements, newswire, and transcripts of broadcast news. Sports and politics are examples of broad subjects under this definition.
The relation between subject and genre works in both directions. A search on a subject can return several document kinds, only some of which suit the reader’s purpose. Conversely, a large collection of documents in one genre can range over very different subjects while keeping recognizable conventions. The first property gives a user a reason to filter on genre. The second gives the authors a reason to look for evidence in the way documents are written and formatted. A classifier could take advantage of these conventions even when it encounters a different subject within a familiar genre. The experiment tests for evidence of conventions in a mixed collection, with a separate question remaining about how stable those conventions would be across collections.
The paper illustrates the distinction with a reader looking for stories about the god Jupiter. The same name can occur in documents whose uses to that reader are very different. A keyword brings those occurrences into the search. A genre preference expresses the value of a kind of result such as classical fiction. The paper treats these as complementary decisions. Good evidence about genre cannot establish that a text contains the particular story the reader wants, just as a good topical match can still take the reader to the wrong kind of document.
The authors connect this problem to the growth of electronic text from sources such as news services, online journals, and email. They describe search engines as a partial response to the volume of material. A result list can still be dominated by texts that fail to satisfy a requirement the query does a poor job of expressing. They also describe Web directories that arrange sites by their content or services. These directories cover a limited part of the Web and largely require people to build their hierarchies. The authors envisage automatic categorization working alongside topic identification to make those hierarchies easier to construct and update. The experiments themselves assign labels to documents, so the directory is a proposed use at a different level of organization.
Incoming mail gives the authors another example of a practical decision. A user can write rules for junk mail, but the rules can require continuing attention. A filter that separates solicited messages from unsolicited ones makes one useful distinction. Different kinds of legitimate or unsolicited messages can still deserve different places in a queue. The authors propose genre as an additional way to organize that queue. They also distinguish this proposal from the sense of information filtering they cite from Oard, which selects material on the basis of its content. The two can support different decisions about the same text.
These applications give errors different consequences. A reader who consults only the advertisement results could miss an offer written outside that genre. A reader who uses a genre label to prioritize a list can still inspect its lower-ranked entries. The paper’s classification question precedes either choice. It asks how reliably a genre label can be inferred and how the answer changes when the classifier can leave a document unassigned. The usefulness of a label in an application then depends on how the label is used.
Features of genre in earlier work
The paper situates its proposal among studies with different definitions of the target categories and different ways of describing texts. Kessler and colleagues use the idea of genre facets, or aspects of a text that can help characterize its kind. As the authors recount it, that work connects the value of genre to searches through large, varied spaces. A collection restricted to a familiar source or document type offers fewer occasions to see why genre distinctions matter. The authors regard the experimental data in that earlier study as too limited to settle the practical question they pose. Automatic Detection of Text Genre
The account of Karlgren and Cutting places genre recognition on a separate line of work using measured textual properties and discriminant analysis, a method for using measured differences to separate classes. Their experiments use samples from the Brown corpus. Stamatatos and colleagues also use discriminant analysis, with common-word frequencies as evidence and punctuation frequencies as additional features. Their documents come from identified genres within the Wall Street Journal. The paper observes that Stamatatos and colleagues, like Kessler and colleagues, dispense with more elaborate features proposed in the earlier work. This history sets up a question about the appropriate level of detail. Counting recurring words and punctuation gives a compact description. Broader observations about sentence construction and layout give a classifier access to other differences between texts.
The study of sections from Le Monde by Illouz and colleagues contributes a distinction about the granularity of grammatical evidence. In the authors’ account, broad categories from part-of-speech tagging help tell section types apart, while more finely divided categories prove less helpful for genre. A feature such as the overall prevalence of verbs asks for a coarser kind of measurement than a full grammatical account of each sentence. That distinction helps explain the present paper’s willingness to use an approximate tagger. The genre prediction depends on document-level patterns, so the authors are interested in whether the measurements are consistent enough to preserve those patterns.
Earlier email work raises questions about the choice of classes and the isolation of features. Sahami and colleagues learn a junk-mail filter using selected words and then augment it with indicators specific to mail, including the number of recipients and the time of posting. The paper points out that the extra indicators are evaluated in combination with words, leaving their independent contribution unresolved in that study. May’s work on the HUMANIST discussion group categorizes messages by matching manually chosen phrases. Cohen compares TF-IDF weighting, which considers a term’s frequency within a document alongside its prevalence across documents, with learned rules that look for keywords. The task described there concerns extracting a category from a mail stream. These are related applications, with different requirements from assigning every document in a heterogeneous collection to a genre.
The paper also describes an agent from Pannu and Sycara that learns about a user’s research interests to filter conference announcements and requests for proposals. Its keyword inventory comes from terms ranked by TF-IDF. The document’s relevance to the user is the outcome of interest in that work. In the genre experiment, the outcome is the document’s assigned kind. Keeping those tasks distinct allows the paper to ask whether a learned genre label might subsequently help with relevance decisions.
Taken together, the earlier studies motivate testing vocabulary and presentation both apart and together. Vocabulary is already a practical representation, and some of its apparent topical cues can also be characteristic of genres. Presentation gives access to traits that a word-frequency representation discards. The authors want to know what happens when both representations face the same classification task and when different learning procedures make use of each. This design makes the comparisons within the paper more direct than a comparison of scores from studies using different labels or collections.
The method, step by step
From a labeled document to a feature vector
The procedure begins with documents whose genres are known. For each document, the authors record measurable properties in a vector, an ordered list of feature values. In a word vector, a position stands for a particular selected word. In a presentation vector, a position might stand for the proportion of a grammatical category or a measure of sentence length. The position has the same meaning across documents, so a classifier can learn how differences at that position relate to the training tags. Concatenating the vectors gives the classifier access to both descriptions of the same document.
The word inventory is chosen before the cross-validation comparisons. The authors use the whole collection to identify useful terms and choose a cutoff that leaves every document with at least one selected word. The presentation extractor operates on each document to calculate its measurements. During cross-validation, classifiers learn from one portion of the collection and make predictions for the held-out portion. The distinction between corpus-wide vocabulary selection and fold-specific classifier training matters when interpreting what is held out.
From labeled documents to evaluated genre predictions
The steps in order.
Choosing words with Information Gain
The vocabulary representation is a bag of words. Word identities and frequencies survive, while their order in the original text is omitted. Two documents can therefore have the same word vector if they contain the same counts of selected words in different orders. The attraction of the representation is that recurring terms can serve as evidence even in texts whose sentence structures differ. Genre-specific wording can be useful for this purpose, as can vocabulary connected to topics or sources that are frequent within a genre in the collection.
The authors use Information Gain to decide which words receive positions in the vector. The idea is to look for words whose occurrence changes what can be inferred about genre. If a word has much the same distribution across genres as the rest of the tokens, identifying that word provides little evidence in this calculation. If identifying it substantially changes the distribution, the word can be informative. The authors use Yang’s formulation for text classification, describing it in terms of a maximum-entropy treatment and emphasizing that it can work with numerically measured features. A Maximum Entropy Approach to Natural Language Processing
A token in this calculation is an individual word occurrence. A word that appears repeatedly contributes repeated tokens. The sampling unit therefore matters. Drawing a random token from the collection gives longer documents more opportunities to contribute than drawing a random document would. The genre attached to a token comes from the document that contains it. For each target genre, the paper considers both the event that the token comes from that genre and its complement. It also distinguishes the event that the token is the candidate word from the event that it is some other word.
P(w) = |{k ∈ T : W(k) = w}| / |T|
T is the collection of word tokens, with each occurrence treated as a separate item. k denotes one of those tokens, ∈ means membership, and W(k) is the word that occurs at k. w is the candidate word. The braces collect the tokens satisfying the condition after the colon, and the vertical bars around a collection give its size. The slash denotes division. P(w) is the probability that a randomly chosen token is an occurrence of w.
P(w̄) = |{k ∈ T : W(k) ≠ w}| / |T|
P(w̄) is the probability that the chosen token is an occurrence of some word other than w. The overbar marks the complementary event and ≠ means inequality. T, k, W(k), and w continue to denote the full token collection, a token, its word, and the candidate word. The collection in the numerator includes the occurrences for which the inequality holds.
P(gᵢ) = |{k ∈ T : g(k) = gᵢ}| / |T|
P(gᵢ) is the probability that the document containing the random token has genre gᵢ. The index i identifies a target genre. g(k) is the genre of the document containing token k, and T again contains all tokens. Counting the tokens that meet the condition gives the numerator.
P(ḡᵢ) = |{k ∈ T : g(k) ≠ gᵢ}| / |T|
P(ḡᵢ) is the probability of the complementary genre event. The numerator counts tokens from documents whose genre differs from gᵢ, using g(k) to identify each token’s genre. The denominator is the same token total. These are token-based genre probabilities. The document-based genre prior used in Naïve Bayes serves a different purpose.
IG(w) = Σᵢ₌₁ᵐ [
P(gᵢ) log P(gᵢ) + P(ḡᵢ) log P(ḡᵢ)
− P(w) (
P(gᵢ | w) log P(gᵢ | w) + P(ḡᵢ | w) log P(ḡᵢ | w)
)
− P(w̄) (
P(gᵢ | w̄) log P(gᵢ | w̄) + P(ḡᵢ | w̄) log P(ḡᵢ | w̄)
)
] × (−1)
IG(w) is the Information Gain score of the candidate word. Σ adds the bracketed expression over the genre index i, starting at 1 and ending at m, the number of target genres. P denotes probability and log the logarithm, on the scale of bits described by the paper. The vertical bar inside a probability means “given.” Thus P(gᵢ | w) is the probability of genre gᵢ among occurrences of w, and P(ḡᵢ | w) concerns occurrences of w outside that genre. Conditioning on w̄ restricts the comparison to tokens of other words. An overbar on a genre or word event indicates its complement. Adjacent probability and logarithm terms are multiplied. The overall factor −1 converts the comparison of signed probability-log terms into the reduction in uncertainty.
One can read the calculation by first considering how uncertain the genre event is without knowing the token’s identity. The first pair of probability-log terms describes that starting distribution. The other pairs describe the distributions after learning whether the token is the candidate word. Each of those descriptions is weighted by how frequently its conditioning event occurs. The summation treats each genre against its complement. A word can consequently receive a useful score by being informative about a particular genre, even if it is unremarkable for distinguishing the others.
This feature selection yields 323 word features. The authors choose the size of the inventory to avoid giving any document an entirely zero word vector. The score of a word determines whether it is available as a feature. Its value for a particular document comes from the word’s frequency there, with the classifier-specific transformation described below. Keeping these stages distinct helps explain why corpus labels can affect the membership of the feature inventory even though word counting on a test document requires only its text.
Measuring presentation
The presentation representation consists of 89 features. Some measure language, some measure visible formatting, and some use groups of words whose aggregate frequencies express a recognizable pattern. Their common role is to give the classifier a description other than an inventory of individually selected word counts. The paper outlines families of features and the way they are extracted.
The first family begins with approximate grammatical tagging. The authors adapt the Porter stemming algorithm, using information from word forms to identify nouns, verbs, adjectives, and adverbs when possible. The extractor keeps the original word form. The morphological analysis is a means of assigning a rough grammatical category, while an ordinary use of stemming would reduce a word to a stem. Lists of closed-class items, covering forms such as pronouns, conjunctions, and articles, augment the categories obtainable from word morphology. Some of these items can be treated as stop words in other indexing schemes. Here their use is itself a possible clue to how a text is written.
The authors emphasize consistency as the relevant property of this rough procedure. A document-level proportion can be informative if the extractor measures similar text in a similar way across the corpus. This reasoning allows the system to exploit approximate grammatical tags without first obtaining a detailed analysis of each passage. It also places a burden on the consistency assumption. For example, if word forms typical of one source are systematically handled differently, a measured category proportion may combine a genuine grammatical difference with a property of the extractor.
Handwritten rules use the word-form analysis and the lists to help determine tense. The system recognizes past, present, and future. It measures the distribution of tenses and also considers the transition between successive verbs whose tenses it identifies. If an identified past-tense verb is followed by an identified present-tense verb, the extractor records a past-to-present transition. The intervening passage can contain other words. The transition is between the identified verbs in text order. It gives some evidence about sequence while the features supplied to the classifier are still summaries of a whole document.
The procedure also counts occurrences of words grouped into lists. The authors mention names of weekdays and months, alongside sets tailored to particular kinds of text, such as signs of the zodiac. Grouping gives different words a shared contribution when they are evidence of the same convention. The paper illustrates this with leo. On its own, the term can be a weak clue. Its membership in a set of astrological signs allows its contribution to be considered alongside other members of the set. This example explains the construction of a feature, while the corpus for the reported genre experiment uses a different inventory of labels.
Other measurements characterize size and variation. Mean sentence length represents typical sentence size, and the variance records how much sentence lengths differ within a document. Mean word length and its variance do comparable work at the word level. Word and sentence lengths, together with estimated syllable counts, support measures of sentence complexity. The extractor includes the Flesch readability measure and the ratio of mean word length to mean sentence length. The ratio is described directly. The paper names the Flesch measure without giving its equation or reproducing the details of the syllable estimator.
R(d) = L̄w(d) / L̄s(d)
R(d) names the ratio for document d. L̄w(d) is the mean word length and L̄s(d) the mean sentence length in that document, with the bars on L indicating means. The slash divides the word-length mean by the sentence-length mean. The subscripts w and s distinguish the units being measured.
Visible properties supply another group of features. The extractor measures punctuation, the use of upper-case and lower-case characters, and whitespace. It looks for strings of punctuation that mark section boundaries and character combinations that serve as smileys. Indentation, line spacing, and tabs contribute measurements of layout. A word vector can omit the distinction between text set out in sections and text delivered as a continuous passage. These features give the classifier observable traces of that distinction without requiring it to recover a document’s full organization.
The authors describe normalization over document length and scaling to [0,1] for presentation features. They also describe using the inverse of a count, with the count bounded below by one, when the underlying measurement is a count rather than a proportion. For a positive count this transformation gives a smaller value as the count grows. A classifier can still learn that a smaller value of such a feature is associated with a genre. This normalization is different from the transformation used for selected word frequencies in the decision tree and support vector machine.
I(c) = 1 / max(1, c)
I(c) is the transformed value for count c. The max operation selects the larger of 1 and c, implementing the stated lower bound on the count used in the denominator. The slash gives the reciprocal of that bounded count.
Representing word frequency for the classifiers
The same selected vocabulary is available to all the learning procedures, but they do not all receive word frequency in the same numerical form. The decision tree and support vector machine use a smoothed logarithmic transformation. The numerator uses the count of the selected word, and the denominator uses the document’s total word count. Adding 1 to each count before taking logarithms permits a selected word’s absence to be represented by a zero numerator and moderates the effect of repeated occurrences.
x(w, d) = log(c(w, d) + 1) / log(N(d) + 1)
x(w, d) is the feature value for selected word w in document d. c(w, d) counts occurrences of that word in the document, and N(d) is the count of all words in the document. The + signs add the smoothing constant 1 before log, the logarithm, is taken. The slash divides the logarithm for the selected word by the logarithm for document length.
For Naïve Bayes, the authors instead describe counting selected words and multiplying those counts by learned log probabilities. In the product formulation below, repeating a word means raising its probability contribution to the power of its count. On a logarithmic scale this becomes multiplication of the log probability by the count. In both descriptions the count concerns the document to be classified and the class-conditional word probabilities come from genre-tagged training documents.
Naïve Bayes
Naïve Bayes compares how plausible the observed document is under each genre while taking account of how common each genre is in training. The genre’s prior probability describes its prevalence before the document’s features are observed. The likelihood describes the probability of the document evidence under that genre. Combining them and normalizing across candidate genres gives a posterior score for each genre. The qualifier “naïve” refers to a simplifying independence assumption used to combine evidence.
P(g(d) = gᵢ | K(d) = KS)
= P(g(d) = gᵢ) P(K(d) = KS | g(d) = gᵢ)
/ Σⱼ : gⱼ ∈ G [P(g(d) = gⱼ) P(K(d) = KS | g(d) = gⱼ)]
d is the document, g(d) its genre, and K(d) its token sequence. KS is the observed token sequence whose genre is being inferred. G is the set of candidate genres, gᵢ is the candidate under consideration, and j indexes the genres gⱼ in the sum. P denotes probability, the vertical bar introduces the condition, ∈ indicates membership, and Σ denotes summation. In the numerator, the prior and the likelihood are multiplied. The denominator adds the corresponding products for all candidates, and the slash divides the numerator by that sum.
For a fixed document the denominator is shared across the candidate genres. The largest numerator therefore identifies the largest posterior. The class prior uses counts of labeled documents. This differs from the probability of the genre of a randomly sampled token used during feature selection. Here each document counts once in the estimate of how common a genre is.
P(g(d) = gᵢ) = |D(gᵢ)| / |C|
P(g(d) = gᵢ) is the prior for genre gᵢ for a document d. C is the corpus used to estimate the prior during training, and D(gᵢ) is its subset tagged with that genre. The vertical bars denote the sizes of the sets, and the slash divides the genre’s document count by the total document count.
To calculate the lexical likelihood, the method estimates word probabilities from tokens in the training documents of each genre. Each retained word contributes according to its multiplicity in the document being classified. The authors invoke Mitchell’s smoothing treatment to prevent unavailable events from making all candidate probabilities vanish. The displayed count expression describes the underlying estimate without specifying all details of that smoothing.
P(K(d) = KS | g(d) = gᵢ)
= ∏w ∈ W(d) ∩ WS [
|{k ∈ K(gᵢ) : W(k) = w}| / |K(gᵢ)|
] ^ c(w, d)
P(K(d) = KS | g(d) = gᵢ) is the likelihood of the document evidence under genre gᵢ. K(d) is the document’s token sequence and KS the observed sequence. W(d) is the set of word types in d, and WS is the selected vocabulary. The intersection sign ∩ restricts the product to word types belonging to both sets. ∏ multiplies their contributions. K(gᵢ) is the collection of tokens in training documents of genre gᵢ; k is a token and W(k) its word. Braces identify the tokens of w in that genre and surrounding vertical bars count them. The slash divides that count by the genre’s total token count. The caret raises the resulting frequency estimate to the power c(w, d), the number of occurrences of w in the document being classified.
Presentation features require a different treatment because they can take real values. The paper gives an expression in which the feature value for the test document is multiplied by the feature’s average over the training documents of a genre. It also discusses feature value ranges and the question of how continuous values behave when assigned to bins. The displayed expression gives the stated real-valued contribution. A complete specification of the ranges and their handling would require more detail.
V = v(f, d) [Σₑ ∈ D(gᵢ) v(f, e)] / |D(gᵢ)|
V is the real-valued quantity for the feature and candidate genre. f is the feature, d the document being scored, and v(f, d) its observed feature value. e ranges over the training documents in D(gᵢ), the subset tagged with genre gᵢ. The summation sign Σ adds their values v(f, e). Dividing by |D(gᵢ)|, the number of those documents, gives the genre’s average. Adjacency of v(f, d) and the bracketed sum denotes multiplication.
The decision tree and the support vector machine
C4.5 learns a decision tree. Each internal node tests a feature and sends the document down a branch according to its value. The paper describes construction as choosing a feature by Information Gain and dividing the training examples into groups. At a leaf, the tree assigns a genre. The learned path can involve different tests for different documents. A feature can therefore be useful in a particular region of the training data even if its value alone gives an ambiguous indication of genre across the collection.
The tree is pruned by replacing a subtree with a leaf when the replacement reduces expected error. This is intended to keep the tree from fitting the training data too closely and to reduce its complexity. The authors use the default C4.5 settings. The Information Gain used to decide tree splits is part of classifier training; the earlier Information Gain operation determines which word features are available to all classifiers.
The authors use SVM-light for the support vector machine, or SVM. In their setup, a binary classifier is trained for each genre, distinguishing that genre from the other examples. Each gives a real-valued score for a document. A forced decision takes the genre with the highest score. Consequently the same document can be evaluated for every genre while the final output is a single label. The paper cites earlier work on SVMs in text classification in its account of this choice. Text Categorization with Support Vector Machines
Early experiments with linear vector space gave the authors difficulty obtaining convergence in a reasonable time. A radial basis function helped with that difficulty. It changes how distances between feature vectors enter the comparison and allows more flexible separations in the original feature space. The choice is reported as a response to training behavior. The paper also describes increasing the size of the subproblem used during optimization when duplicate subvectors across classes caused trouble. This increased training time while avoiding the reported problem. The authors identify duplicate full vectors across classes as a persistent source of convergence failures in the version they used. Zero word vectors are one way exact duplicates can arise. Apart from the adjustments reported, the authors describe using the SVM defaults.
Learning and scoring on separate folds
The experiments use ten-fold cross-validation. Each run allocates 90% of the corpus to training and 10% to testing. The held-out portion rotates so that each document can contribute to a test result, and a document being tested in a particular run is outside classifier training for that run. The training operation is repeated for the feature representation and classifier being compared. This procedure provides estimates from multiple held-out portions of the same collection rather than making the outcome depend on a single partition.
The decision rule comes after the classifier scores a document. In the forced setting, the highest-scoring genre supplies the answer. In the threshold setting, Naïve Bayes and the SVM may return an unknown outcome when their best score is too low. The paper uses a score below 0.5 for Naïve Bayes and a negative score for the SVM. An unknown outcome records that the rule withheld a genre. The actual document still has one of the known labels against which recall is measured.
Experiments and results
The collection and what counts as a correct prediction
Jaime Carbonell and Fang Liu at Carnegie Mellon University supplied the study’s collection. It contains 9,705 documents tagged with seven labels. Advertisements, bulletin board documents, frequently asked questions, and message board documents account for the categories outside news. The news labels distinguish radio, television, and Reuters newswire. Most of the radio and television documents were produced by transcription systems, and the authors report errors in those transcripts. This matters for interpreting presentation features because automatically transcribed text can look different from edited newswire for reasons associated with its production.
The primary benchmark is the word-frequency representation. For each classifier, the authors compare it with the presentation representation and with the concatenation of the two. For the additional experiment with withheld decisions, the corresponding forced predictions provide a baseline for understanding what the score cutoff changes. The house-search illustration has its own comparison between queries and uses the existing corpus tags. Its precision concerns the relevance of search results. The classification experiment instead measures agreement between predicted and existing genre labels.
In the classification task, the numerator for recall is the number of documents given their correct genre. The denominator is the number of test documents, including documents for which a classifier withholds a decision. Precision uses the same numerator and divides it by the number of genre decisions actually issued. These definitions pool outcomes across documents. A forced decision gives the two metrics the same denominator, so precision and recall both equal the proportion correctly classified. F1 then has the same value as well.
F1 = 2 × (P × R) / (P + R)
F1 is the combined score, P is precision, and R is recall, expressed on the same scale. The multiplication signs combine the values and apply the factor 2. The slash divides by the sum of precision and recall. When the two inputs differ, the score gives weight to maintaining both. The paper reports means over the cross-validation folds and accompanies them with one standard deviation.
Forced genre assignment
The strongest forced classification result is the SVM using both representations. Its 92.1% average recall, with a standard deviation of 0.8%, is the detailed result behind the paper’s statement of 92% accuracy. With word frequencies alone, the same classifier obtains 85.4% average recall and a standard deviation of 0.9%. With presentation alone, it obtains 87.1% average recall and a standard deviation of 1.0%. Each of these figures refers to assigning a genre to every held-out document in ten-fold cross-validation on the CMU collection.
Average forced-decision recall by SVM feature set on the CMU genre corpus
Presentation features score above word frequencies, and their combination scores highest.
The numbers
| System or setting | recall % |
|---|---|
| Word frequencies | 85.4 |
| Presentation features | 87.1 |
| Combined features (this paper) | 92.1 |
The decision tree follows the same ordering. Its average recall is 79.8% with word frequencies, with a standard deviation of 1.1%. Presentation gives 85.3%, with a standard deviation of 1.0%. Combining the feature vectors gives 87.8%, with a standard deviation of 1.1%. For this classifier, a document’s presentation provides the stronger individual representation in the tested setting. Word frequencies still improve the result when the tree can use them alongside presentation values.
Naïve Bayes shows a different ordering for the individual representations. Word features give 77.8% average recall with a standard deviation of 1.6%. Presentation gives 64.0% with a standard deviation of 1.2%. The combined representation reaches 83.1%, with a standard deviation of 1.5%. The weak standalone result for presentation therefore coexists with a gain from including it. Across classifiers, the presentation vector’s value depends on how its measurements are used. Across representations, the SVM gives the highest forced-decision mean for each.
These comparisons hold the corpus and forced-decision task constant. They give evidence about the relative performance of the configurations the authors ran, including the chosen settings and feature transformations. They also show why reporting the best combination alone would conceal part of the result. The presentation vector can be used on its own to strong effect by the SVM and the tree, while Naïve Bayes has a much harder time with that use. The combined representation is the strongest in all three cases.
Withholding weak predictions
The threshold experiment reports a different operating point. The SVM and Naïve Bayes produce numeric scores to which the authors apply their cutoffs. C4.5, as used in the paper, does not participate in this comparison because it could not be configured for an unknown outcome. For the participating classifiers, refusing a weak prediction can improve the proportion of issued labels that are right at the cost of leaving some correctly classifiable documents without labels.
With word features, the thresholded SVM produces 81.8% mean recall, 88.4% mean precision, and 85.0% mean F1. The respective standard deviations are 0.6%, 1.3%, and 0.4%. Presentation features give 83.6% recall, 90.1% precision, and 86.7% F1, with standard deviations of 0.9%, 2.4%, and 0.9%. With the combined features, the SVM gives 84.0% recall, 94.9% precision, and 89.1% F1. The respective standard deviations are 2.5%, 0.7%, and 1.5%. All refer to the held-out documents in the CMU cross-validation, with precision conditioned on a genre decision being issued.
Average F1 with an unknown outcome allowed on the CMU genre corpus
The combined feature vector gives each classifier its highest F1, with the SVM combination leading the comparison.
The numbers
| System or setting | F1 % |
|---|---|
| Naïve Bayes with word frequencies | 78.5 |
| Naïve Bayes with presentation features | 47.4 |
| Naïve Bayes with combined features | 83.2 |
| SVM with word frequencies | 85.0 |
| SVM with presentation features | 86.7 |
| SVM with combined features (this paper) | 89.1 |
Thresholded Naïve Bayes with word features gives 76.7% mean recall, 80.4% precision, and 78.5% F1, with standard deviations of 1.4%, 1.3%, and 1.4%, respectively. With presentation features its recall falls to 33.9%, with 78.8% precision and 47.4% F1. The respective standard deviations are 1.4%, 1.4%, and 1.5%. In this case, a precision figure on its own would miss how severely the thresholded system underperforms on recall. With combined features, Naïve Bayes gives 82.4% recall, 84.1% precision, and 83.2% F1, with standard deviations of 1.5%, 1.4%, and 1.4%.
For the combined SVM, the comparison with forced assignment is particularly easy to interpret. With a label required for every document, 92.1% of the decisions are correct on average. Under the threshold, 94.9% of issued labels are correct on average, while correct labels reach 84.0% of all documents. These percentages describe two different policies that can serve different uses of genre. A user browsing a restricted set of results may value the reliability of the labels that made it into that set. A user trying to arrange a whole collection may value assigning as many correct labels as possible. The paper supplies outcomes for the specified cutoff and the forced rule.
What the house search demonstrates
The retrieval example starts from 20 documents judged to contain information about houses currently for sale in the 9,705-document collection. The query house returns 693 documents. Of those, 16 are relevant, giving the reported 80% recall and 2% precision. Adding the advertisement tag requirement leaves 35 documents, of which 15 are relevant. The reported precision is then 43% and recall 75%. This comparison shows how a known genre label can reduce the set a user has to inspect. It also shows the cost of excluding a relevant document whose tag falls outside the requested kind.
The comparison with a more specific Boolean query helps distinguish two ways of restricting the results. Requiring house together with either sale or rent gives 53% recall and 19% precision. With the advertisement requirement added to that Boolean query, the paper reports 47% recall and 35% precision. Thus each genre restriction raises precision relative to the corresponding query without it. The precise choice of lexical and genre conditions still matters. The genre-restricted Boolean query has lower recall and lower precision than the simpler genre-restricted keyword query in this example.
The authors explain some of the missed results in terms of the assumptions built into the requests. Four relevant documents do not use the word house. One relevant document is outside the advertisement label. A filter built around a word presupposes that the relevant documents contain that word, while a genre condition presupposes that they occur in the desired document kind. The example makes these assumptions visible because the authors know both the relevant set and the genre tags. It illustrates the retrieval mechanism with one information need, with classifier accuracy measured in the separate cross-validation experiments.
What the ablations show
Removing either source of evidence
The comparison of word frequencies, presentation, and their combination is the feature-set ablation. It asks what a classifier can do after access to either source of evidence is removed. On forced decisions, the presentation-only SVM gives 87.1% average recall and the presentation-only tree gives 85.3%. Their word-only results are 85.4% and 79.8%, respectively. Within these settings, the way texts are written and laid out carries class information that survives the removal of individually selected word frequencies. The experiment supports that conclusion for the presentation vector as a whole.
The result also has a narrower interpretation than a clean split between language form and vocabulary. The presentation vector includes frequencies of word groups as well as measures derived from individual word forms. The word vector, for its part, can contain words that writers in certain genres characteristically use. The strongest supported distinction is between the authors’ two representations. The results establish the usefulness of a grouped set of style, language, and layout measurements as an alternative input. They also establish the usefulness of preserving selected individual word frequencies alongside those measurements.
The combined results suggest that the two representations resolve some different ambiguities. The authors examine SVM misclassification matrices for words, presentation, and the combination. In each matrix, a row corresponds to the known genre and a column to the decision. Correct assignments fall on the diagonal. Off-diagonal cells identify the particular labels substituted for the correct ones, and an unknown column distinguishes a withheld decision from an incorrect genre assignment. The authors observe that the mistakes under word frequencies differ from those under presentation. This observation motivates concatenation. The gain from concatenation then shows that the additional evidence can be used in practice within these configurations.
Concatenation lets a single classifier learn from both kinds of measurements for the same document. In a decision tree, a word feature can help in a part of the tree reached after a presentation feature has already narrowed the possibilities. For Naïve Bayes, adding presentation values changes the evidence that goes into the comparison among candidate genres. The resulting gains show the combined input is useful, while identifying exactly which features or interactions explain an individual correction would require more detailed comparisons.
Why presentation behaves differently with Naïve Bayes
Naïve Bayes provides the clearest case in which a representation’s value depends on the learning procedure. With forced assignment, it scores 77.8% average recall from words and 64.0% from presentation. The combined result of 83.1% shows the presentation measurements can still contribute when the classifier has selected words available. The authors propose several explanations for the weaker presentation-only result and distinguish those explanations from findings they have tested directly.
One candidate is dependence between features. Naïve Bayes combines evidence as though features were independent within a class. Several presentation features are related by their construction. Proportions of grammatical categories depend on how a common body of text is distributed among categories. Length and complexity measures can also use overlapping observations. When related measurements enter a product as separate pieces of evidence, the result can give linked observations more influence than their actual independence would warrant. The authors regard dependence as a possible factor, while noting the practical history of the independence approximation with bags of words.
A second candidate concerns how the classifier uses increasing feature values. In the lexical likelihood, the same probability contribution is repeated for each occurrence of a selected word. When the training estimate for a word favors a particular genre over another, each additional occurrence adds evidence in the same direction in that comparison. Some real relationships have a useful middle range. The authors illustrate this with said, which occurs seldom in message board, bulletin board, and FAQ texts in their training data, often in Reuters newswire, and at intermediate frequencies in the broadcast transcripts. In such a case, an intermediate count may have a different significance from both a low count and a high one.
The authors’ third explanation concerns adapting the treatment of features from integer-valued word counts to continuous measurements. An interval can group continuous values together so that the classifier treats them alike. The boundaries of such intervals can determine whether a difference in proportion or length is visible to the scoring procedure. The authors say that the effect of this treatment is unclear in their experiment. Dependence, the behavior of increasing values, and the handling of continuous measurements remain possible explanations. The paper supplies no error analysis that quantifies their respective contributions.
Changing the decision policy
The threshold comparison changes the decision policy while keeping the feature representation fixed for each comparison. It shows what happens when low-scoring outputs become unknown outcomes. Precision rises relative to forced assignment, and recall falls. The combined SVM shows the strongest reported precision under this policy. The severe loss in recall for presentation-only Naïve Bayes shows that the same kind of policy can have very different consequences depending on the classifier and the evidence it uses.
The comparison gives results at the stated thresholds. The authors suggest a more relaxed cutoff could be worth considering in light of the precision and recall tradeoff they observe. That suggestion is about the choice of operating point, with the available measurements confined to the forced and thresholded settings. There is no reported family-by-family removal of tense, punctuation, length, or layout features. The tested ablations isolate the two vector sets, the matrices describe patterns of decisions, and the threshold experiment shows how withholding decisions changes the aggregate metrics.
Limitations
Limits identified by the authors
The authors explicitly qualify the vocabulary selection procedure. They calculate Information Gain over the whole corpus and choose the cutoff to avoid empty word vectors. This gives the classifiers a favorable word inventory for the collection. According to the authors, evaluating how well the feature selection procedure itself works falls outside the scope of the experiment. In a prospective application, the inventory would need to be selected with labeled training material before seeing the documents to which the classifier would later be applied. Holding out documents for fitting the classifiers is therefore a different test from holding out documents for the entire process of supervised feature selection and fitting.
The authors also leave open whether the television and radio categories deserve to be treated as distinct genres. Their transcripts are predominantly the products of automated transcription and contain errors. The experiment evaluates agreement with the collection’s labels. Agreement indicates that the labeled categories can be recovered to the reported degree, while the definition of the categories remains a separate question. For example, even consistently different surface patterns could arise from conventions of broadcasting, conventions of preparation, or artifacts of the systems that produced the documents.
The paper explicitly treats the house search as a single illustration. Relevance for that example refers to information about houses currently for sale. Genre tags already exist and can be used as query conditions. The paper presents the retrieval example to explain the potential of genre filtering and the classification study to examine automatic identification. Those two steps leave the effect of labeling errors on the search results unevaluated. The authors also identify larger collections and an increased range of genres as directions for future work.
The authors acknowledge the simplicity of their grammatical extractor and give an outline of the presentation features in place of a full specification. The claim about consistency of tagging is a rationale for the design. The classification experiments test the whole representation obtained with that design. They leave unanswered how much a more accurate grammatical analysis would change the result. In their discussion of Naïve Bayes, the authors likewise acknowledge that they have yet to perform the error analysis needed to account for the weaker presentation result.
Limits visible in the evaluation
Since vocabulary selection uses genres throughout the corpus, the labels of the held-out documents can influence which terms qualify as features. The classifiers are fitted on their training folds, but the choice of lexical inputs already reflects the full collection. This matters for estimating the performance of a system that has to choose terms using only the training portion. It affects interpretations of the word-only and combined configurations. The presentation-only comparisons supply separate evidence of the usefulness of that representation, while all comparisons still depend on which kinds and sources of documents are in the collection.
The cross-validation folds sample the collection that supplies the training data. The paper does not report holding out an entire source, transcription system, or subject area. The class name Reuters newswire identifies a source along with a genre. In such a setup, a word or a typographic feature can be predictive because it is characteristic of a particular provider’s documents. Transcript errors can also serve as clues to how a file was produced. These possibilities are consistent with the observed classification performance. Estimating whether the useful evidence is stable across sources would require a test organized around that change.
The presentation vector also draws on word lists that can carry subject associations. Lists tailored to particular document kinds make sense for recognizing recurring vocabulary used in patterned ways. They do not by themselves demonstrate that the presentation features work when subject vocabulary is controlled. Likewise, selected word frequencies can reflect a way of writing as well as a topic. The classification results support complementarity between the defined feature vectors. An experiment designed to separate the influence of topic, genre, and source would need those factors varied independently enough to compare their effects.
For the reported averages, documents enter the metric through pooled counts of correct decisions, all test documents, or issued labels. High performance on the collection can coexist with lower performance on an uncommon genre. The matrices help locate some confusions. The main averages give no equal weighting guarantee for individual genres, and genre-specific reliability could matter if a user wants to filter for a narrow category. The standard deviations describe variability across the reported folds. The paper supplies no formal test establishing how reliably the observed differences would persist under another choice of data or partition.
The unknown outcome has a specific meaning in this experiment. It is triggered by a low score on a document drawn from the set of known genres. This evaluates abstention on known classes. Recognizing documents belonging to a previously unseen genre would be a different task, requiring data from outside the genre inventory. The paper also reports one cutoff for each participating classifier, so the results leave room for other tradeoffs between assigning reliable labels and covering the collection. Their score scales and threshold values do not provide a common measure of confidence between the two classifiers.
Finally, the best classification score addresses a specific unit and objective. The unit is an individual document from the CMU corpus, and the objective is agreement with its genre tag. Web directories organize sites, search systems rank or filter results for information needs, and mail sorting can express a user’s priorities. Each can make use of genre predictions, with different consequences when a prediction is wrong or withheld. The paper gives evidence for the labeling component and a worked example of the value of known labels. It leaves the overall effect in those applications to be measured.
What came after
The paper’s conclusion proposes genre identification as a possible aid for retrieval evaluations such as the TREC Web track. That proposal follows from the difference between its two evaluations. The cross-validation measures whether the system can assign a document kind. The house query measures what can happen when a search condition uses a known kind. A retrieval evaluation using automatically assigned genres would connect those stages and measure the consequences of the classifier’s mistakes and unknown outcomes for the search task.
A later paper that cites the study is UMass at TREC 2004: Novelty and HARD. Its title places the work in a TREC setting and identifies its subjects as Novelty and HARD. The citation establishes a connection in the research record. The bibliographic information establishes no particular use of the word inventory, presentation measurements, or genre decision rule in that study. It therefore leaves open which aspect of the genre paper informed the later work and whether genre entered the evaluated retrieval procedure. UMass at TREC 2004: Novelty and HARD
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksComputer Vision and Pattern Recognition · 3,621 worksInformation Systems · 1,888 works
Cite
Cite as Nigel Dewdney, Carol VanEss-Dykema and Richard MacMillan. 2001. The Form is the Substance: Classification of Genres in Text. Proceedings of the ACL 2001 Workshop on Human Language Technology and Knowledge Management.
@inproceedings{dewdney2001form,
title = {{The Form is the Substance: Classification of Genres in Text}},
author = {Nigel Dewdney, Carol VanEss-Dykema and Richard MacMillan},
booktitle = {Proceedings of the ACL 2001 Workshop on Human Language Technology and Knowledge Management},
year = {2001},
doi = {10.21236/ada460898},
url = {https://doi.org/10.21236/ada460898}
}References
- Biber, D. (1995) " Variation Across Speech and Writing", Cambridge University Press, New York. OpenAlex ↗ · Scholar ↗
- Berger, A., S.Della Pietra, V.Della Pietra, ˆ(1996) "A Maximum Entropy Approach to Natural Language Processing", Computational Linguistics, vol. 22 No. 1, pp39−71.
- Burges, C. (1998) "A Tutorial on Support Vector Machines for Pattern Recognition", Data Mining and Knowledge Discovery, No. 2. OpenAlex ↗ · Scholar ↗
- Cherney, L. (1999) "Conversation and Community: Chat in a Virtual World", CSLI Publications, Stanford University. OpenAlex ↗ · Scholar ↗
- Cohen, W.W. (1996) "Learning Rules that Classify E− Mail", AAAI Spring Symposium on Machine Learning in Information Access. OpenAlex ↗ · Scholar ↗
- Cristianini, N., J.Shaw−Taylor, (2000) "Introduction to Support Vector Machines", Cambridge University Press, . OpenAlex ↗ · Scholar ↗
- Flesch, R. (1974) "The Art of Readable Writing", Harper and Row, New York. OpenAlex ↗ · Scholar ↗
- Illouz, G., B.Habert, H.Folch, S.Heiden, S.Fleury, P.Lafon, S.Prevost (2000) "TyPTex: Genric features for Text Profiler", Proc. OpenAlex ↗ · Scholar ↗
- RIAO 2000, Paris, France. OpenAlex ↗ · Scholar ↗
- Joachims, T. (1998) "Text Categorization with Support Vector Machines: Learning with Many Relevant Features", European Conference on Machine Learning.
- Karlgren, J., and D Cutting (1994) "Recognizing Text Genres with Simple Metrics Using Discriminant Analysis". In Proc. of the 15 th International conference on Computational Linguistings (COLING’94) OpenAlex ↗ · Scholar ↗
- Kessler, B., G Nunberg, H. Schutze (1997) "Automatic Detection of Text Genre". In Proc. if 35 th Annual Meeting of the ACL and 8 th Conference of ECACL.
- May, A. (1997) "Automatic Classification of E−Mail Messages by Message Type", JASIS, vol 48 No.1, pp32−39. OpenAlex ↗ · Scholar ↗
- Mitchell, T.M. (1997) "Machine Learning", McGraw− Hill, Boston, Massachusetts. OpenAlex ↗ · Scholar ↗
- Oard, D.W., N. De Claris, B.J.Dorr, C.Faloutsos, (1994) "On Automatic Filtering of Multilingual Texts", Proceedings of IEEE International Conference on Sytems, Man, and Cybernetics, pp1645−1650, Vsan Antonio Texas. OpenAlex ↗ · Scholar ↗
- Osuna, E. R.Freund, and F.Girosi, (1997) "Training support vector machines: an application to face recognition", IEEE Conference on Computer Vision and Pattern Recognition. OpenAlex ↗ · Scholar ↗
- Pannu, Anandeep, Sycara. (1996) "Learning Text Filtering Preferences", Symposium on Machine Learning and Information Processing, AAAI Symposium Series, Stanford, Ca., March’96. OpenAlex ↗ · Scholar ↗
- Porter, M.E. (1980) "An Algorithm for Suffix Stripping", Program Vol. 14, No. 3, pp318−327, July’80. OpenAlex ↗ · Scholar ↗
- Quinlan, J.R. (1993) "C4.5: Programs for Machine Learning", Morgan Kaufmann, California.
- Sahami, M., S.Dumais, D.Heckerman, E.Horvitz, (1998) "A Bayesian Approach to Filtering Junk E−Mail" AAAI Workshop Technical Report WS−98−05. OpenAlex ↗ · Scholar ↗
- Stamatatos, E., N. Fakotakis, and G. Kokkinakis (2000) "Text Genre Detection Using Common Word Frequencies". In the Proc. of the 18 th International Confernece on Computational Linguistics (COLING2000) OpenAlex ↗ · Scholar ↗
- SVM−light webpages URL: http://ais.gmd.de/~thorsten/svm_light/TREC webpages. URL: http://trec.nist.gov OpenAlex ↗ · Scholar ↗
- Yang, Y., J.Pedersen, (1997) "A Comparative Study on Feature Selection in Text Categorization", Proceedings of the 1997 International Conference on Machine Learning (ICML), pp.412−420. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/dewdney-2001-form-is-substance-classification-genres/