Package jazzparser :: Package utils :: Package nltk :: Package ngram
[hide private]
[frames] | no frames]

Source Code for Package jazzparser.utils.nltk.ngram

 1  """Generic n-gram model implementation, using NLTK's probability handling. 
 2   
 3  A generic n-gram model, using NLTK's probability stuff. 
 4   
 5  """ 
 6  """ 
 7  ============================== License ======================================== 
 8   Copyright (C) 2008, 2010-12 University of Edinburgh, Mark Granroth-Wilding 
 9    
10   This file is part of The Jazz Parser. 
11    
12   The Jazz Parser is free software: you can redistribute it and/or modify 
13   it under the terms of the GNU General Public License as published by 
14   the Free Software Foundation, either version 3 of the License, or 
15   (at your option) any later version. 
16    
17   The Jazz Parser is distributed in the hope that it will be useful, 
18   but WITHOUT ANY WARRANTY; without even the implied warranty of 
19   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
20   GNU General Public License for more details. 
21    
22   You should have received a copy of the GNU General Public License 
23   along with The Jazz Parser.  If not, see <http://www.gnu.org/licenses/>. 
24   
25  ============================ End license ====================================== 
26   
27  """ 
28  __author__ = "Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>"  
29   
30  from .dictionary import DictionaryHmmModel 
31  from .model import NgramModel, PrecomputedNgramModel 
32