Skip to content

A fast and efficient chinese FAQ approach with One shot learning (Siamese) and TF-IDF techniques.

Notifications You must be signed in to change notification settings

sorahjy/A-Lightweight-Chinese-FAQ

Repository files navigation

A Lightweight Chinese FAQ

A fast and efficient chinese FAQ approach with One shot learning (Siamese) and TF-IDF techniques.

requirements

  • tensorflow 1.14.0
  • keras 2.2.4

usage

See more details in faq_siamese.py

if __name__ == '__main__':
    # train model
    train()
    # show candidate
    print('*' * 30)
    exps = ['为什么植物会指南','小孩为什么不能吃补品中药?']
    for exp in exps:
        for x in ShowCandidate(exp):
            print(x)
        print('*'*30)
    # answer a question
    print(Answer('为何植物会吃石头'))

About

A fast and efficient chinese FAQ approach with One shot learning (Siamese) and TF-IDF techniques.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages