Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

# Natural Language Toolkit: Combinatory Categorial Grammar 

# 

# Copyright (C) 2001-2012 NLTK Project 

# Author: Graeme Gange <ggange@csse.unimelb.edu.au> 

# URL: <http://www.nltk.org/> 

# For license information, see LICENSE.TXT 

 

""" 

Combinatory Categorial Grammar. 

 

For more information see nltk/doc/contrib/ccg/ccg.pdf 

""" 

 

from nltk.ccg.combinator import (UndirectedBinaryCombinator, DirectedBinaryCombinator, 

                                 ForwardCombinator, BackwardCombinator, 

                                 UndirectedFunctionApplication, ForwardApplication, 

                                 BackwardApplication, UndirectedComposition, 

                                 ForwardComposition, BackwardComposition, 

                                 BackwardBx, UndirectedSubstitution, ForwardSubstitution, 

                                 BackwardSx, UndirectedTypeRaise, ForwardT, BackwardT) 

from nltk.ccg.chart import CCGEdge, CCGLeafEdge, CCGChartParser, CCGChart 

from nltk.ccg.lexicon import CCGLexicon