Closed Ezibenroc closed 9 years ago
@ProgVal: I try to have a good programming style. Could you please check this pull request (especially the class Nounificator) and tell me if you see some weird things that should be changed?
i would be nice to have shortest names for the functions (otherwise it's painful to use them)
Why not: D
instead of Direct
and I
instead of Inverse
("reverse" needs to be replaced by "inverse", i didn't know that "reverse" was still used in this file)
i would be nice to have shortest names for the functions (otherwise it's painful to use them)
See this comment of @Tpt at the beginning of the project :)
Can we have autocompletion when we update the database from the terminal?
Can we have autocompletion when we update the database from the terminal?
sudo aptitude install ipython3
ipython3
Enjoy!
Cool! So just change "reverse" to "inverse"
def __str__(self):
l = sorted([(x, 0) for x in self.verbToNounsDirect.keys()] + [(x, 1) for x in self.verbToNounsReverse.keys()])
return '\n'.join([self.select(x) for x in sorted(l)])
l is sorted twice
Done, thank you for your remarks.
Do we merge?
Improve class Nounificator: