1 / 33

Ling 570

Ling 570. Day #2 . Tokenizing and evaluating tokenization. Tokenization.

keefe
Download Presentation

Ling 570

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ling 570 Day #2

  2. Tokenizing and evaluating tokenization Tokenization

  3. After coming close to a partial settlement a year ago, shareholders who filed civil suits against Ivan F. Boesky and the partnerships he once controlled again are approaching an accord, people familiar with the case said. Meanwhile, within the next few weeks, the limited partners in Ivan F. Boesky & Co. L.P. are expected to reach a partial settlement with Drexel Burnham Lambert Inc. regarding the distribution of the $330 million in partnership assets, said one of the individuals. One individual said the shareholders' accord was "well worked out." There are at least 27 class-action shareholder suits that have been consolidated in federal court in New York under U.S. District Judge Milton Pollack.

  4. Tokenize • After coming close to a partial settlement a year ago, shareholders who filed civil suits against Ivan F. Boesky and Co. L.P. Drexel’s plaintiffs’ …

  5. FSA/T Conventions

  6. FSAs Formally • A Finite-State Automaton (FSA) is a 5-tuple: • A set of states Q {q0,q1,q2,q3,q4} • A finite alphabet Σ {b,a,!} • A start state q0 • A set of accepting states {q4} • A transition function Q x Σ Q

  7. FSA Example • An automaton: • Σ

  8. FSA Example • An automaton: • Σ= {a,b} • Q =

  9. FSA Example • An automaton: • Σ= {a,b} • Q = {q0,q1}; start: ; final:

  10. FSA Example • An automaton: • Σ= {a,b} • Q = {q0,q1}; start: q0; final: {q1} • Regex=

  11. FSA Example • An automaton: • Σ= {a,b} • Q = {q0,q1}; start: q0; final: {q1} • Regex= a*b+

  12. FSA Example • An automaton: • Σ= {a,b} • Q = {q0,q1}; start: q0; final: {q1} • Regex= a*b+

  13. FSA Example • An automaton: • Σ= {a,b} • Q = {q0,q1}; start: q0; final: {q1} • Regex= a*b+

  14. FSA Example • An automaton: • Σ= {a,b} • Q = {q0,q1}; start: q0; final: {q1} • Regex= a*b+

  15. FSA Example • An automaton: • Σ= {a,b} • Q = {q0,q1}; start: q0; final: {q1} • Regex= a*b+

  16. Another FSA Example • Another automaton:

  17. Two Views of FSAs • Recognition: An FSA is a model that, given an input string, accepts the string if it is in the language, and rejects otherwise • Generation: An FSA m is a model that can generate all and only the strings in L(m).

  18. Finite-State Transducers

  19. FSTs, Formally

  20. FSTs • Finite automaton that maps between two strings • Automaton with two labels/arc • input:output

  21. FST Applications • Tokenization • Segmentation • Morphological analysis • Transliteration • Translation • Speech recognition • Spoken language understanding

  22. Approaches to FSTs • FST as recognizer: • Takes pair of input:output strings • Accepts if in language, o.w. rejects

  23. Approaches to FSTs • FST as recognizer: • Takes pair of input:output strings • Accepts if in language, o.w. rejects • FST as generator: • Outputs pairs of strings in languages

  24. Approaches to FSTs • FST as recognizer: • Takes pair of input:output strings • Accepts if in language, o.w. rejects • FST as generator: • Outputs pairs of strings in languages • FST as translator: • Reads an input string and prints output string

  25. Approaches to FSTs • FST as recognizer: • Takes pair of input:output strings • Accepts if in language, o.w. rejects • FST as generator: • Outputs pairs of strings in languages • FST as translator: • Reads an input string and prints output string • FST as set relator: • Computes relations between sets

  26. FST as Translator FR: ce bill met de le baume sur une blessure EN: this bill putsbalm on a sore wound

  27. FST Application Examples • Case folding: • He said  he said

  28. FST Application Examples • Case folding: • He said  he said • Tokenization: • “He ran.”  “ He ran . “

  29. FST Application Examples • Case folding: • He said  he said • Tokenization: • “He ran.”  “ He ran . “ • POS tagging: • They can fish  PRO VERB NOUN

  30. FST Application Examples • Pronunciation: • B AH T EH R  B AH DX EH R • Morphological generation: • Fox s  Foxes • Morphological analysis: • cats  cat s

  31. Stemming/WFSTs/Markov Chains • Next Class:

More Related