Top Banner
Subcorpus configuration Adam Kilgarriff
18

Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Jan 17, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Subcorpus configuration

Adam Kilgarriff

Page 2: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 2

“you can’t get away from genre” Bonnie Weber, Keynote Lecture

ICON (Indian NLP Conf), Hyderabad, Dec 09

Page 3: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 3

Text type

Catch-all Spoken vs written Domains Regions

English: British, American Dutch: Nl, Belgium

Formality …

Page 4: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 4

Important for everything Lexicography

“this word is informal/specialist/NZ/…” Tagging and parsing

Stats vary: Biber 1993 WSD

Domain predicts word sense McCarthy et al 2004

Page 5: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 5

How do we know text type?

Because of where the doc came from Or

Bottom-up text classification technology

Page 6: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 6

In the corpus

Header information

<doc region=“NL” domain=“science” type=“newspaper”>

‘Free text’ header fields – author, title etc – a separate issue

Page 7: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 7

In Sketch Engine

Page 8: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 8

Page 9: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 9

Page 10: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 10

Subcorpus configuration file

Header info defines subcorpora Until recently subcorpora all ‘personal’

Users without usernames: can’t use All possible subcorpora: too many Corpus developers know which are salient

Global subcorpora Defined in subcorp config Compile time

Precompute frequencies faster

All users see them INL: first users

Page 11: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 11

# *FREQLISTATTRS attr1 attr2 # specifies attributes for which freq lists precomputed# ## =subcorpus_id # names it# structure # usually doc# sub-query # att-val pairs that define the subcorpus

*FREQLISTATTRS word lemma lempos

=spoken doc alltyp="Spoken context-governed" | alltyp="Spoken demographic"

=book60 doc alltim="1960-1974" & wrimed="Book"

Page 12: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 12

Page 13: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 13

In development

Flag words like a dictionary does Is it specially informal/specialist/NZ/…? If yes, add to word sketch

Cf: Mark Davies, Freq Dict Portuguese [-a] indicates that the word is much less

common in the academic register than expected

Intro, p7

Page 14: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 14

“Specially”, “much more/less common than expected” Percentiles For each word/lempos

Count for each subcorpus Normalise Discount for dispersion: ARF (?? ratio interacts with freq: add-n) Ratio of (normalised discounted add-n) freqs

Sort Compute percentiles on sorted list

cf: Sketch Engine “findx”

Page 15: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 15

Page 16: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 16

Page 17: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 17

Formally Item to test (usually lempos)

Same item as word sketch Subcorpus1 s1 Subcorpus2 s2 (by default: whole corpus) Percentile p Hypothesis

Ratio of (normalised discounted) freq in S1 to S2 puts this lempos in top p% of all lempos

If true add fact to word sketch

Page 18: Subcorpus configuration Adam Kilgarriff. Feb 2010Kilgarriff: IWSG: Subcorpora2 “you can’t get away from genre” Bonnie Weber, Keynote Lecture ICON (Indian.

Feb 2010 Kilgarriff: IWSG: Subcorpora 18

Thanks