Skip to content
BIASED

What natural language processing is

Block 1 of 7~2 min

From models to language tasks

Deep Learning supplied models and objectives; here we first specify what the language system observes and which output it must produce.

A message says, “The lamp sparks at the switch.” An equipment library needs to route it to a safety check. Another message says, “Can I collect the lamp after six?” It needs a booking answer. Both contain lamp. A search for that word retrieves both; a useful decision requires more of the message and a definition of the decision itself.

The examples below use invented equipment-library messages. They are small enough to inspect completely. Their purpose is to expose the mechanics of a system, not to estimate the quality of a deployed service.

The problem: from text to decisions and back

Natural language processing builds computational procedures whose inputs or outputs involve human language. A procedure can use rules, statistical models, or both. It may classify a message, identify a phrase, rank a document, or generate a response. These tasks differ in what counts as an acceptable output. The task categories in the Hugging Face course provide background; our equipment-library setting supplies the examples here.

We first choose the observation available at prediction time. Is it just the latest message, the complete conversation, or the conversation plus the equipment register? “It still does that” may be meaningful with the previous exchange and impossible to resolve from the last sentence alone. Adding a larger model cannot recover a particular missing conversation with certainty.

Next we choose an output contract. For routing, an output might be one of booking, return, inspection, or needs clarification. For extraction, it might be an item identifier and a collection date, with an explicit empty value when the information is absent. For a response, it might be text that must agree with the current reservation record. These are distinct contracts even when one model can attempt all of them.

Finally we specify an error. Sending a booking message to inspection wastes work; failing to flag a potentially unsafe lamp has a different consequence. A generated answer can be grammatical and still promise an unavailable item. A useful evaluation therefore connects the output to a decision, rather than treating fluency as a universal score.

The task boundary also determines where a human or another program intervenes. An extractor can propose a date while a calendar validator checks whether it exists. A classifier can abstain when required context is absent. The learned component need not take responsibility for every operation surrounding it.

Answers are saved on the server and tied to this browser until you sign in.

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • Inspect a language-task exampleoptional

    Inspect the full fictional inputs, rerun the standard-library calculations, and check the stated invariants. Optional desktop practice.

    ~15 min · easier on a computer

    Self-check in the notebook — not part of mastery or the certificate.