fastText classification: a reliable speed baseline using averages

Convergence where the terms are understood and the phrases are embedded, distinguishing between feature design and network depth.

• Step by stepCollate in 2 self-measured2 First-hand sources
Start Body
Learning objectives and first steps2 objectives 2 first fixes

Try to do it after reading

  • Convergence where the terms are understood and the phrases are embedded, distinguishing between feature design and network depth.
  • Check the input, label and evaluation conditions in the example

Suggested first

  • Text Tasks and Language Expressions
  • Conditional probability and vector calculations

Simple structures also require clear mandates

A fast text classifier maps words and local phrases to vectors, aggregates them into documents and reconnects the classification layer. A shallow structure facilitates the rapid establishment of baselines and iterative data. Its value is first to enable the characterization, labelling and costing of the text, rather than to promise that all tasks will replace the context depth model.

The continuous phrases feature adds some local order to the average expression. For example, when words are used only, it may be difficult to distinguish between sentences with different verbs but with the same frequency; With the addition of a combination of two or three words, some of the phrase information can be retained. The phrase often uses Hash to control the characteristic space, but collisions allow different combinations to share parameters and require the barrel size to be preserved as an experimental configuration.

An example of average representation

The three characteristic vectors are [1], [0,1], [1], followed by an average of two thirds and two thirds. If the first item is repeated in the document, the average becomes 3/4 and 1/2; Repeated words therefore change direction and weight. The summation has different length scales from the average and cannot be freely switched during the training and service phases.

The class layer maps the polymer vector to the label score. When the number of labels is large, structured output calculations can be used to reduce costs, but this will introduce structural choices such as label trees. Multilabel jobs should be selected for targets that match the independent labels, and are not based solely on default examples to configure extrapolated support. Training parameters and model files will be preserved to allow the experiment to be repeated.

The most revealing error of the baseline

If a simple model is close to a complex model, it may indicate that the task is largely determined by keywords or that there is a template leak in the data. Gaps should be more closely segregated by user, source or time. Titles, signatures, category names and file paths may be inadvertently disclosed and the fields will be checked when text is pre-processed.

Error analysis compares changes in word characteristics, phrases and characters, and progressively locates word sequence, spelling and low-frequency words. When short text information is insufficient, adding a deeper model does not necessarily resolve the ambiguity; The long text may, on average, dilute key sentences. The service benchmark is required to record the length of the sample, the number of categories, the number of threads and the hardware at the same time, and cannot directly reproduce the ingestion figures in the paper as the site or individual project achievement.

Check understanding

Is there no word sequence information on average embedding?

(b) The order is lost when only average words are taken; If the input also contains continuous phrase features, a portion of the local order is retained. However, it still does not directly represent an arbitrary long-distance syntax relationship.

The model files are the same. What happens when you change the word rule?

The input distribution of words and phrases changes and even produces a large number of non-observed items. Pre-processing is part of the model contract and should be kept in the same manner as training and with the version.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Bag of Tricks for Efficient Text Classification
  2. fastText — Text classification tutorial

Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.

← Back to the knowledge directory
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.