Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.12 KB

README.md

File metadata and controls

27 lines (23 loc) · 1.12 KB

CNS final

Run

  • ./search

Add new detection method

  1. add src/newmethod.h, define the class here
  2. add include/newmethod.cpp, define your function here
  3. add #include "newmethod.h" into include/methods.h
  4. use your class and function in src/search.cpp
  5. add newmethod.o into OBJ list in Makefile
  6. make clean && make
  7. ./search

Strategies

  • Global Strategy
    • Try to find possible zhuyin typing in english
    • If the matched string contains only digits, we will discard it. For example, ppp040404, since the matched string is 040404 (暗暗暗), it contains only digits.
  • NoType
    • [a-zA-Z0-9]*chinese[a-zA-Z0-9]*
  • OnlyChinese
    • chinese

Notice

Please refer to README in each tool in tools/ for more details

  • tools/bopomofo/ contains a modified project from others github that crawl chinese <-> zhuyin mapping from Ministry of Education's dictionary, we need the merged.dict to check if a zhuyin combination can form a chinese
  • tools/exception/ add zhuyin combination into exception list so that each methods could prevent from generate false positive of zhuyin password