esilgard / argos_nlp

main repository for the argos/hidra nlp engine
Apache License 2.0
3 stars 6 forks source link

Proof of concept of refactoring existing codebase to use OO concepts.… #4

Closed WhiteAu closed 8 years ago

WhiteAu commented 9 years ago

… PathStage* was chosen because it doesnt appear to be touched by current code, and it demonstrates how inheritance can reduce code duplication:

  -PathStage.py holds the shared implementation of the get() function.
  -PathStage[T|N|M].py contains the specific implementations of these: the stage_name and the specific regex to parse FullText.