Skip to content

Add `disamb` subcommand to dico

Hébert-Pinard, Charlie requested to merge dico-disambiguate into master

Description

The purpose of this merge request is to add the dico disamb subcommand. This merge request contains the implementation for only one strategy first which returns the symbol id of the first definition in polysemy or homonymy cases.

Modified files

  • src/dico.py to add the disamb subcommand
  • src/dictionary.py to add disambiguation functions to class Dico
  • README.md to add subcommand description

Added files

  • src/disambiguate.py to parse the argument and apply the functions
  • sample/json/small_lemma.json a sample file to make tests
  • bats/test_dico_disamb.bats to test the subcommand
Edited by Alexandre Blondin Massé

Merge request reports