You are on page 1of 4

2013 6 June 2013

21 2 Journal of Xian International Studies University Vol 21 No 2



450007





; ; ;
H030 A 1673-9876 2013 02-0033-04
Abstract The establishment and application of corpus is inseparable from corpus processing and in the meanwhilethe re-
trieval and replacement of corpus is also very important in corpus studies All these tasks and implementation are inseparable
from the use of regular expressions whose application runs throughout corpus studies from beginning to end Based on thisthis
article first introduces the concept and function of regular expressions and then discusses their compositionobtaining and ap-
plication in the retrieval and replacement and other aspects in corpus studies
Key words regular expressions composition obtaining application

1 2

egular Expression egex




Ben Forta
2007 4

2010 17
\S + ility

ility
\S +
2011 95


hi hihi

AntConcPowerGEPEditPadPro
PatternBuilder


2011 26
\S +







\ \w + * @ - \ w + *

Email \ 0 \d 2 - \d 8


010 88886666 022-22334455
2009 65 02912345678 1 \d 10




33


PPH1 \s \S + _VM \s \S + _VB0I\s \S + _JJ \s \S + _CST

It is / was / may be / has been / is very / may be very /


may have been very / may not be so clear that

\S + _PPH1 \s \S + _VM \s \S + _VH \S + \s \S
3 1 + _XX \s \S + _VB \S + \s \S + _XX \s \S + _ \S + \

s \S + _J \S + \s \S + _CST
PatternBuilderEditPad ProPowerGEP 3 2





PatternBuilder CLAWS
ClawsTreeTagger GoTagger

ClawsTreeTagger \S + _AD\w + \s
\S + _VB \w* \s \S + _X
228-233
\w + \s * \S + _V \wN \s

\ S + _VH \ w* \ s \ S + _


X\w + \s * \S + _V \wN \s
Claws TreeTagger
+ have + done
\ w + _ \ w + _B
\S + _VM \w* \s \S + _XT\w + \s * \S + _VH \w

Claws * \s \S + _VBN \s \S + _X\w + \s * \S + _V \wN \s


Claws
PowerGEP

Help Tutorial

\w
a-zA-
Z 0-9
_ \S +

4

http

\ \zh wikipedia org \wiki \





4 1

\w + _NN1


\w + _VV \w + \w AntConc PowerG-
+ _JJ \w + _-ing EP
\w + _VDG\w + _V \wN 4 1 1

to to_TO be
\w + _VB \w \S + VM \s \wly \jj ly

not \ w + _XXIt iIt_ \wly \rb ly \S
PPH1 that CST + ility ility
ability


inabilitypossibility


st ay | ays | aying |


ayed stay staystaysstayingstayed




It is + adj + that PPH1 \s \S + _ \S + _N \w +
\S + _NP \w*
\
VBZ \s \S + _JJ \s \S + _CST S + _V \w + be \S + VB \w +
It was + adj + that PPH1 \ s \ S


+ _VBDZ \s \S + _JJ \s \S + _CST ask for \bask * \b

It may be + adj + that \S + _VV \S + \s \S + _ \S + \s
34
are some items in front of him At firstwordlesslyhe took
AntConc 3 3 5w take out an empty glass jar And he started to pick up
1 File Open File s rocks put it right to the top of jar The rocks quickly filled
Open Dir fill up the jar jaw And he asked his students wheth-
2 Search Term er this jar was is full All of his students said say
Search Term egex yes
EditPad
3 Start

Pro
4 1 EditPad Pro

Search Show Search Panel

23
Search eplace

4 1 2
Search eplace High-
light

Search eplace egular



Expression
Search Term
2 EditPad Pro File

Open


3 Search *



\S + _VB \S + \s \S + _VVBDHG \s
replace all

\S + _V \w + \s \S + _NP\w + \s \S + _NP\w + \
watch + \ + do
b 4 3
Search
watch \w* _V \w + \s \S + \s 0
2 \w + _PN\w + \s Task \s \d TASK 1

\w + _V \wI watch + \ + replace all
TASK 1

doing watch \w* _V \w + \s \S + \s 0
2 \
w + _PN\w + \s \w + _V \wG


Search * |

TASK 0-9
TASK 1

replace all





4 2 s / \ ^
EditPad Pro PowerGEP ascii + / / /
\ t\S \-+ \
\ \w \ \-+ \

1
2 3

4 2 1

4 2 2



2008 56-57


TASK 1 a EditPad pro Search
SPOKEN TEM4 GADE2 YEA06 \S + _ \S + b EditPad pro eplace
GOUP001 TASKTYPE 1 2 3 SEX T1 = MT2 = M $ 1 c eplace All
T3 = MM ANK = 1
Detagging Tool
TASK 1 4 2 3
A philosophy professor stood before his class And there

35

EditPad pro eplace 2009 2 65-73
3 M
S|
\2
2010
5 4
J 2011 1 95-98

5 M

2008
6 J 2011 2
23-26



2012


2012-

GH-374

ZGW-
*
YJYJJ2012A53






1Ben Forta
M
2012-09-26
2007
2 J

32 19Williams F Gesture as a conceptual mapping toolA In A Cienki


10Langacker W Metaphoric gesture and cognitive linguisticsA In C Mller eds Metaphor and GestureC Amsterdam / Philadel-
A Cienki C Mller eds Metaphor and GestureC Amsterdam / phia John Benjamins2008 55-92
Philadelphia John Benjamins2008 249-252 20ZbikowskiL M Metaphor and musicA In W Gibbs ed The
11McNeillD So you think gestures are nonverbal J Psychological e- Cambridge Handbook of Metaphor and ThoughtC Cambridge Cam-
view1985 92 350-371 bridge University Press2008 502-504
12McNeillD Hand and Mind What Gestures eveal about ThoughtM 21
Chicago University of Chicago Press1992 J 2012 3 273-280
13MllerC What gestures reveal about the nature of metaphorA In A 22 J
Cienki C Mller eds Metaphor and GestureC Amsterdam / 1999 6 32-35
Philadelphia John Benjamins2008 219-245 23 M 1999
14Nez E A fresh look at the foundations of mathematics Gesture and 24 10 J
the psychological reality of conceptual metaphorA In A Cienki C 2012 1 36-44
Mller eds Metaphor and GestureC Amsterdam / Philadelphia 25 J 2005 2
John Benjamins2008 93-114 42-46
15Nez E E Sweetser With the future behind them Convergent 26 J 2011
evidence from language and gesture in the crosslinguistic comparison of 6 89-93
spatial construals of timeJ Cognitive Science2006 30 1-49 27 Lakoff J
16SauterM D H UttalA S AlmanS Goldin-Meadow S C Le- 2007 2 17-20
vine Learning what children know about space from looking at their
hands The added value of gesture in spatial communicationJ Journal
of Experimental Child Psychology2012 111 587-606 201122G005

17SchnallS Embodiment in affective space Social influences on spatial
perceptionA In W S Thomas MAnne eds Spatial Dimen-


sions of Social ThoughtC Berlin / Boston Walter de Gruyter2011


129-152
18TalmyL How language aims at a target The cognitive system underlying
2012-11-07
deixis and anaphora Xian The 11th International Cognitive Linguis-
tics Conference Program2011

36