20.07.2013 Views

Notes on computational linguistics.pdf - UCLA Department of ...

Notes on computational linguistics.pdf - UCLA Department of ...

Notes on computational linguistics.pdf - UCLA Department of ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Stabler - Lx 185/209 2003<br />

lex(’the’,[’D’,’@’]).<br />

lex(’cat’,[’k’,’&’,’t’]).<br />

lex(’cat-nap’,[’k’,’&’,’t’,’y’,’n’,’&’,’p’]).<br />

lex(’is’,[’I’,’z’]).<br />

lex(’island’,[’aI’,’l’,’@’,’n’,’d’]).<br />

lex(’<strong>on</strong>’,[’0’,’n’]).<br />

lex(’mat’,[’m’,’&’,’t’]).<br />

lex(’matt’,[’m’,’&’,’t’]).<br />

lex(’Matt’,[’m’,’&’,’t’]).<br />

We can represent this dicti<strong>on</strong>ary with the following prefix transducer that maps ph<strong>on</strong>es to spelling as<br />

follows:<br />

lex<br />

D:th<br />

k:c<br />

I:i<br />

m:[]<br />

[D]<br />

[k]<br />

[I]<br />

[m]<br />

@:e<br />

&:a<br />

z:s<br />

a:[]<br />

As discussed in class, in order to represent a finite state transducer, which is, in effect, a grammar with “output,”<br />

we will label all the categories <strong>of</strong> the morphological comp<strong>on</strong>ent with terms <strong>of</strong> the form:<br />

[D@]<br />

[k&]<br />

[Iz]<br />

[m&]<br />

category(output)<br />

t:t<br />

t:matt<br />

t:Matt<br />

t:mat<br />

So then the machine drawn above corresp<strong>on</strong>ds to the following grammar:<br />

[k&t]<br />

[m&t]<br />

lex([t,h|Rest]) :˜ [’D’,’[D]’(Rest)].<br />

lex([c|Rest]) :˜ [k,’[k]’(Rest)].<br />

lex([i|Rest]) :˜ [’I’,’[I]’(Rest)].<br />

lex([o|Rest]) :˜ [’0’,’[0]’(Rest)]. % in Mitt<strong>on</strong> notati<strong>on</strong>, that’s a zero<br />

lex(Rest) :˜ [m,’[m]’(Rest)].<br />

’[D]’([’e’|Rest]) :˜ [’@’,’[D@]’(Rest)].<br />

’[D@]’([]) :˜ [].<br />

’[k]’([a|Rest]) :˜ [’&’,’[k&]’(Rest)].<br />

’[k&]’([t|Rest]) :˜ [t,’[k&t]’(Rest)].<br />

’[k&t]’([]) :˜ [].<br />

’[I]’([s|Rest]) :˜ [z,’[Iz]’(Rest)].<br />

’[Iz]’([]) :˜ [].<br />

38

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!