simongray / StatementAnnotator

Custom annotator for Stanford CoreNLP that annotates sentences with the underlying statements contained within them.
4 stars 0 forks source link

Isolating language-dependent features to a special class #63

Open simongray opened 8 years ago

simongray commented 8 years ago

In order for issues like #60 to work with other languages in the future, language-dependent code (particularly code that depends on lexical features) will need to be spun off into a class that implements a relevant interface.

This interface, perhaps called Language, would simply be for collections of lexical features and utility methods for different languages. Methods like Statement.getTense() would depend on the implementation of this class in the relevant language (e.g. English).