Error message with Regular Expressions in AntConc 4

170 views
Skip to first unread message

tayo olatoye

unread,
Aug 16, 2022, 2:03:04 PM8/16/22
to AntConc-Discussion
Hello Laurence,

I have been using regex to search my pos-tagged corpus in Antconc version 3.5.8 without complaints.  I recently installed Antconc 4.1.1 on my macbook. Then I tried to use some of the regex from my previous queries but I keep getting this error message: >Error creating the database entries. Check that your search query is valid. The error is shown below: user-defined function raised exception.

I installed version 4.0.10 on another windows laptop, and the regex still don't work. But when I use the older version 3.5.8, the search queries work fine.

Here's an example of a recent query: \w+_(VBDR|VBDZ|VBG|VBI|VBM|VBN|VBR|VBZ)\s(\w+_VVN) 

Please kindly advise.
Tayo

Laurence Anthony

unread,
Aug 16, 2022, 2:29:29 PM8/16/22
to ant...@googlegroups.com
Hi. Just remove the "\s" as regex in AntConc 4 acts at the token level.

Let me know if this works.

Laruence.

###############################################################
Laurence ANTHONY, Ph.D.
Professor of Applied Linguistics
Faculty of Science and Engineering
Waseda University
3-4-1 Okubo, Shinjuku-ku, Tokyo 169-8555, Japan
E-mail: antho...@gmail.com
WWW: http://www.laurenceanthony.net/
###############################################################


--
You received this message because you are subscribed to the Google Groups "AntConc-Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antconc+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antconc/2581a2c4-5da6-4a13-9539-60a5d5faed6en%40googlegroups.com.

tayo olatoye

unread,
Aug 16, 2022, 2:36:11 PM8/16/22
to AntConc-Discussion
Dear Laurence,

Thank you for the response.

No, it doesn't work. I still get the same error message.

Tayo

Laurence Anthony

unread,
Aug 16, 2022, 2:43:06 PM8/16/22
to ant...@googlegroups.com
Hi again,

Can you try each part separately first, to identify which part is causing the problem?

Laurence.


###############################################################
Laurence ANTHONY, Ph.D.
Professor of Applied Linguistics
Faculty of Science and Engineering
Waseda University
3-4-1 Okubo, Shinjuku-ku, Tokyo 169-8555, Japan
E-mail: antho...@gmail.com
WWW: http://www.laurenceanthony.net/
###############################################################

tayo olatoye

unread,
Aug 16, 2022, 2:55:16 PM8/16/22
to AntConc-Discussion
Dear Laurence,

Your suggestion worked.  I removed the \s and the second (), and the regex below worked:
\w+_(VBDR|VBDZ|VBG|VBI|VBM|VBN|VBR|VBZ) \w+_VVN

Thank you very much.

Kind regards,

Tayo

Laurence Anthony

unread,
Aug 16, 2022, 3:05:20 PM8/16/22
to ant...@googlegroups.com
Excellent! 

As AntConc 4 regex works at the token level, it's not as powerful as in AntConc 3, but I think you'll find that the regex searches are simpler and the results will come back much much faster. I think the only things that regex in AntConc 4 cannot do is look forward and look backward searches.

Laurence.



###############################################################
Laurence ANTHONY, Ph.D.
Professor of Applied Linguistics
Faculty of Science and Engineering
Waseda University
3-4-1 Okubo, Shinjuku-ku, Tokyo 169-8555, Japan
E-mail: antho...@gmail.com
WWW: http://www.laurenceanthony.net/
###############################################################

Reply all
Reply to author
Forward
0 new messages