Character subwords: allow low-frequency words to borrow expressions

Understands the form sharing from the character segment of a word, distinguishing sub-words from sub-words.

• 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

  • Understands the form sharing from the character segment of a word, distinguishing sub-words from sub-words.
  • Check the input, label and evaluation conditions in the example

Suggested first

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

How a word you've never seen gets a vector

A fixed word sheet has an unrecorded word vector, usually only returns an unknown word mark. Character subwords express a word as a combination of multiple character segments, allowing the root, the suffix and the common spelling mode to share training signals. Even if the complete verb never appeared, some of these fragments might have been learned to be represented.

The footage here is not necessarily a linguistic vocabulary. A character window with a fixed length may cross a word root boundary and also have a string that has no independent meaning. After adding the header, end mark, the same letter may produce different characteristics at the beginning or at the end. A character segment must follow the specifics and not be directly confused with the output of the subword word divider.

Shares from a complex number font

In English, for example, cats, plus border access ⟨cats⟩, a series of 3 lengths can be written as ⟨ca、cat、ats、ts⟩I don't know. In this case, cat may get a signal from a single number of languagests⟩ , which reflects the end pattern. (a) Different length ranges will produce different quantities of characteristics; When storage is controlled using the Hashi table, multiple segments may fall into the same barrel, generating a sharing of parameters and collisions.

Assuming that a new word consists of four known segments, each with a two-dimensional vector, they can be presented by combining them by rules. It is no longer an unknown word that is completely blank, but it does not guarantee that the word is correct: a similar word may have different meanings, and synonyms may not have common characters. The sharing of knowledge provides a general bias, not a dictionary.

Applied scene and error check

The rich pattern of change, the high number of low-frequency words or the presence of words with a captioning disturbance are often worthy of comparison with the word integer baselines. In Chinese, characters are different from the boundary of words and should be separately validated for length ranges, verbs and training materials; The validity of the English morphology experiment should not lead to the tacit acceptance of the same benefits for the Chinese language.

The evaluation is conducted by word frequency drums with separate observations of new words, spelling variants and completely random strings. The latter may also receive vectors, but it does not imply a reliable semantics. In the search system, it is advisable to check both the list of similar terms and the downstream recall to avoid using abnormal input as a normal word simply by vector.

You also need to record the way the characters are regularized. The size, full-angle character, accent and encoded form changes the snippet. Training is inconsistent with service string processing and staggers the segments that should have been shared; Such questions should first be verified by several manual verbs rather than immediately increasing vector dimensions.

Check understanding

Is the character sub-word vector the same step as the BPE word?

No, it's not. The former can be expressed by enumerating segments of characters within the word and condensing them; BPE, on the basis of the rules learned for consolidation, cuts the text into words. Both relate to subwords, but represent different units and training objectives.

Does the unknown word have a vector equal to the model understanding it?

Not equal. Vectors derived from a combination of known segments may capture morphological relationships or may be misled by irrelevant spelling or by Hash collisions. The downstream evaluation of the unknown word is still needed.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Enriching Word Vectors with Subword Information
  2. Jurafsky and Martin — Embeddings

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.