An architecture for bilingual and bidirectional NLP