thedevil7
V2EX  ›  问与答

1. 如果要在一本较大的英文电子书中, 标记某些特定的单词, 那请问是不是用正则表达式替换最为迅速? 2. 某些英语网站的搜索可以提供同根词的结果是怎么做到的?

  •  
  •   thedevil7 · Nov 4, 2012 · 3914 views
    This topic created in 5029 days ago, the information mentioned may be changed or developed.
    1. 比如我有一个 6M - 10M 的 txt 文本是一本英语书, 我又有一个列表, 其中包含着 8000 个英语单词, 我想要把这本英语书中包含在这个列表里的单词标记出来, 是不是用正则式最快呢?

    2. 比如 economist 网站中搜索 abatement, 它给出的结果中却又 abated, abating 等同根词, 我能想到是把某些固定结尾(-ment, -ed, -ing)去掉, 再去掉一两个字母, 再搜索.

    求指教. 多谢.
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5214 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:10 · PVG 17:10 · LAX 02:10 · JFK 05:10
    ♥ Do have faith in what you're doing.