Skip to Main Content
fastText Quick Start Guide
book

fastText Quick Start Guide

by Joydeep Bhattacharjee
July 2018
Intermediate to advanced content levelIntermediate to advanced
194 pages
5h 22m
English
Packt Publishing
Content preview from fastText Quick Start Guide

Architecture

You can consider that each piece of text and each label is actually a vector in space and the coordinates of that vector are what we are actually trying to tweak and train so that the vector for a text and associated label are really close in space:

Vector representation of the text

So, in this example, which is an example shown in 2D space, you have texts that are saying things such as "Nigerian Tommy Thompson is also a relative newcomer to the wrestling scene" and "James scored 20 of his 46 points in the opening quarter" are closer to the "sports" label and not the "travel" label.

The way we can do this is we can take the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

WebAssembly: The Definitive Guide

WebAssembly: The Definitive Guide

Brian Sletten
Spark: The Definitive Guide

Spark: The Definitive Guide

Bill Chambers, Matei Zaharia
Learning Go

Learning Go

Jon Bodner

Publisher Resources

ISBN: 9781789130997Supplemental Content