Search is not available for this dataset
repo_id
stringlengths
12
110
file_path
stringlengths
24
164
content
stringlengths
3
89.3M
__index_level_0__
int64
0
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/toc-statemachine-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>statemachine</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script ...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fstypes.TypedFeatureValue-class.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fstypes.TypedFeatureValue</title> <link rel="stylesheet" href="epydoc.css" type="text/css" ...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/t-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>t</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="text/...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/specialfs-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>specialfs</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script typ...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fuf.fufconvert-pysrc.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf.fufconvert</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <scrip...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fuf-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="tex...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fuf.fstypes.TypedFeatureValue-class.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf.fstypes.TypedFeatureValue</title> <link rel="stylesheet" href="epydoc.css" type="text/c...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/development.html
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="g...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fuf.Unifier-class.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf.Unifier</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script t...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/util-pysrc.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>util</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="te...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fuf.sexp-pysrc.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf.sexp</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/statemachine.StateMachine-class.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>statemachine.StateMachine</title> <link rel="stylesheet" href="epydoc.css" type="text/css" ...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/statemachine.PushDownMachine-class.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>statemachine.PushDownMachine</title> <link rel="stylesheet" href="epydoc.css" type="text/cs...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fuf.fuf.GrammarPathResolver-class.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf.fuf.GrammarPathResolver</title> <link rel="stylesheet" href="epydoc.css" type="text/css...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/toc-fuf.fuf-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="tex...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/sexp.SexpList-class.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>sexp.SexpList</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/t.GrammarPathResolver-class.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>t.GrammarPathResolver</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> ...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/development.rst
`nltk.fuf` Development ====================== :Last Update: August 5th, 2008 :Author: Petro Verkhogliad <vpetro@gmail.com> This document details the current state of development of the ``nltk.fuf`` module found in the ``nltk/nltk_contrib/fuf`` directory. In short, this code currently capable of processing simple gra...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/t-pysrc.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>t</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="text/...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fuf.fuf.Unifier-class.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf.fuf.Unifier</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <scri...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fuf.util-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf.util</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/fuf.sexp-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>fuf.sexp</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/toc-fuf.statemachine-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>statemachine</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script ...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/toc-fuf.util-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>util</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="te...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs
public_repos/nltk_contrib/nltk_contrib/fuf/docs/html/toc-specialfs-module.html
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>specialfs</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script typ...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual/src/manual.tex
\documentclass[12pt]{article} % use concrete math fonts \usepackage{ccfonts} \usepackage[T1]{fontenc} % make sure that we can to inverse search \usepackage{pdfsync} % dont waste space with huge margins \usepackage{fullpage} % nicer headers \usepackage{fancyhdr} % math stuff \usepackage{amsmath} % for figures \usepack...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual/src/nltkfuf.bib
%% This BibTeX bibliography file was created using BibDesk. %% http://bibdesk.sourceforge.net/ %% Created for Petro Verkhogliad at 2008-08-10 14:56:59 -0400 %% Saved with string encoding Western (ASCII) @book{reiter-dale, Author = {Ehud Reiter, Robert Dale}, Date-Added = {2008-08-10 14:55:32 -0400}, Date-Mo...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual/src/Makefile
LATEX = latex PDF_LATEX = pdflatex BIBTEX = bibtex8 DVIPS = dvips usage: @echo "make pdf -- Build the manual from LaTex source" @echo "make ps -- Build the manual from LaTex source" @echo "make dvi -- Build the manual from LaTex source" @echo "make clean -- Remove all built files and temporary files" @echo "make...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual/src/avm.sty
% avm.sty -- for attribute-value matrices -- v 1.00 mar 29, 1992 % v 1.01 dec 6, 1993; v 1.02 jan 5, 2006 % (c) 1992 christopher manning (manning@csli.stanford.edu) -- see avm-doc.tex \newif\ifavmactive\newif\ifavmsorted\newif\ifavmlabeled \newif\ifavmcenter\newif\ifavmbottom \newif\ifavmbottomright\newif\ifavmtople...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual/src/fsgraph.ps
%!PS-Adobe-3.0 %%Pages: (atend) %%BoundingBox: 0 1 370 171 %%HiResBoundingBox: 0.210547 1.450391 369.996875 170.549609 %......................................... %%Creator: GPL Ghostscript 863 (pswrite) %%CreationDate: 2008/08/15 19:33:44 %%DocumentData: Clean7Bit %%LanguageLevel: 2 %%EndComments %%BeginProlog % This c...
0
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual
public_repos/nltk_contrib/nltk_contrib/fuf/docs/manual/src/fufpath.ps
%!PS-Adobe-3.0 %%Pages: (atend) %%BoundingBox: 2 1 411 177 %%HiResBoundingBox: 2.505859 1.000391 410.998828 176.801953 %......................................... %%Creator: GPL Ghostscript 863 (pswrite) %%CreationDate: 2008/08/15 19:34:16 %%DocumentData: Clean7Bit %%LanguageLevel: 2 %%EndComments %%BeginProlog % This c...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/sqlviewdialog.py
from qt import * import lpath class SqlViewDialog(QDialog): def __init__(self, lpql=None, parent=None, name=None, modal=False, wflag=0): QDialog.__init__(self, parent, name, modal, wflag) layout = QGridLayout(self) text = QTextEdit(self) if lpql is not None: ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/axis.py
from qt import * from qtcanvas import * import math def dxdy(w, x1, y1, x2, y2): if x1 > x2: x1, x2 = x2, x1 y1, y2 = y2, y1 a = x2-x1 b = y2-y1 c = math.sqrt(a*a + b*b) if c == 0: dx = dy = 0 else: dx = b * w / c / 2.0 dy = a * w / c / 2.0 return d...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/translator.py
from StringIO import StringIO import at_lite as at __all__ = ["translate", "translate_sub"] def translate_sub(t, selected, space): f = StringIO() scope = [None] while t: while scope[-1] and scope[-1] != t.lpScope: f.write('}'+space) scope.pop() if len(...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/nodefeaturedialog.py
from qt import * from at_lite import TableModel, TableEdit import lpath class NodeFeatureDialog(QDialog): def __init__(self, node, parent): QDialog.__init__(self, parent) self.setCaption('Node Attribute Dialog') self.resize(320,240) tab = TableModel([("Name",unicode),("Valu...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/treecanvasview.py
from qt import * from qtcanvas import * from treecanvasnode import * from nodefeaturedialog import * from translator import translate from axis import * import lpath import math class FilterExpressionPopup(QLabel): def __init__(self, parent): self.super = QLineEdit self.super.__init__(self, parent)...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/db.py
import re import traceback import sys import time from qt import * from threading import Thread, Lock import lpath import at_lite as at #from pyPgSQL import PgSQL try: from sqlite3 import dbapi2 as sqlite except ImportError: from pysqlite2 import dbapi2 as sqlite from lpathtree_qt import * __all__ = ["LPathDB...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/treecanvasnode.py
from qt import * from qtcanvas import * from lpathtree_qt import * class Point: def __init__(self, *args): if len(args) == 2 and \ (isinstance(args[0],int) or isinstance(args[0],float)) and \ (isinstance(args[1],int) or isinstance(args[0],float)): self.x = float(args[0]) ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/parselpath.py
from lpath import tokenize from lpathtree import LPathTreeModel from translator import translate SCOPE = ['{','}'] BRANCH = ['[',']'] VAXIS = ['//','/','.','\\\\','\\'] HAXIS = ['<==','==>','<=','=>','<--','-->','<-','->'] AXIS = VAXIS + HAXIS ATTRIBUTE = ['@'] CONNECTIVES = ['or','and'] GROUP = ['(',')'] OPERATION = ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/qba.py
import sys import os from qt import * from qtcanvas import * from treecanvas import * from treecanvasview import * from lpathtree_qt import * from axis import * from db import * from dbdialog import * from sqlviewdialog import * from overlay import * from translator import translate from parselpath import parse_lpath f...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/lpathtree_qt.py
from lpathtree import LPathTreeModel as PureLPathTree from axis import * from qt import QObject __all__ = ['LPathTreeModel'] class LPathTreeModel(PureLPathTree,object): def __init__(self): PureLPathTree.__init__(self) self.gui = None self.axis = None self.line = None self.h...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/lpathtree.py
import at_lite as at from at_lite.tree import TreeModel as PureTree __all__ = ['LPathTreeModel'] # IMPORTANT: We assume that the underlying tree is frozen and not modified # in any case. class LPathTreeModel(PureTree): AxisParent = "AxisParent" AxisAncestor = "AxisAncestor" AxisSibling = "AxisSibling" ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/overlay.py
import re from translator import translate_sub __all__ = ["find_overlays", "Overlay"]; class Overlay: def __init__(self, matches): self._L = matches self._h = dict(matches) def findMatchingNode(self, node): for oldNode, newNode in self._L: if oldNode == node: ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/lpath-schema.sql
create table TABLE ( sid int, tid int, id int, pid int, l int, r int, d int, type varchar(32), name varchar(32), value varchar(64) ); create index TABLE_all_idx on TABLE (name,type,sid,tid,id,pid,l,r,d,value); create index TABLE_sid_idx on TABLE (sid, tid, l, r, d); create in...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/treecanvas.py
from qtcanvas import * from qt import * from treecanvasnode import * __all__ = ["TreeCanvas"] class TreeCanvas(QCanvas): """ TreeCanvas is a canvas on which a tree and LPath query are drawn. The tree to be rendered is set when TreeCanvas is instantiated. Once the tree is set, it is impossible to repla...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/__init__.py
from lpath import *
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/lpath/dbdialog.py
from qt import * from db import * import os try: from pyPgSQL import PgSQL CAP_PGSQL = True except ImportError: CAP_PGSQL = False try: os.environ['NLS_LANG'] = '.UTF8' import cx_Oracle CAP_ORACLE = True except ImportError: CAP_ORACLE = False try: import MySQLdb CAP_MYSQL = True excep...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/table_qt.py
import tableproxy from table import TableModel __all__ = ['TableModel'] TableModel = tableproxy.getProxy(TableModel) if __name__ == "__main__": tab = TableModel([('a',str),('b',str),('c',str)]) tab.insertRow(0) tab.insertRow(1) tab[0][0] = "apple" tab[0][1] = 2 tab[0][2] = 3 tab[1...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/tree.py
from treeio import TreeIo __all__ = ['TreeModel'] class TreeModel(TreeIo): def __init__(self): self.root = self self.parent = None self.leftSibling = None self.rightSibling = None self.children = [] self.data = {} def dfs(self, func, *args): L = [self] ...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/tableio.py
# # ChangeLogs: # $Log: tableio.py,v $ # Revision 1.9 2006/06/27 19:03:28 haejoong # tdf reader now handles different formats of newline characters # # Revision 1.8 2006/04/12 14:55:24 haejoong # fixes for error handling # # Revision 1.7 2006/01/26 15:46:46 haejoong # *** empty log message *** # # Revision 1.6 ...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/table.py
from tableio import TableIo import bisect __all__ = ['TableModel'] class TableModel(TableIo): class TableRow: def __init__(self, tab, iv=[]): """ @param tab: TableModel @param iv: initial value """ self.tab = tab self.data = list...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/README
This is a stripped-down version of at (annotation toolkit) to be included in the lpath-qba tool. The full version of at has been developed and maintained by Haejoong Lee <haejoong@ldc.upenn.edu>.
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/treeedit_qlistview.py
from qt import QListView, QListViewItem, PYSIGNAL from myaccel import AccelKeyHandler __all__ = ['TreeEdit'] class TreeEditItem(QListViewItem): def __init__(self, *args): QListViewItem.__init__(self, *args) self.setOpen(True) for i in range(self.listView().columns()): ...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/treeio.py
import re __all__ = ['TreeIo'] class TreeIo: def treebankString(self, p): L = [self] s = '' while L: n = L[0] if n is None: s += ')' L = L[1:] continue c = n.children if c: s += ...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/myaccel.py
from qt import Qt __all__ = ["AccelKeyHandler"] class AccelKeyHandler: """ Per-widget accel key handler mixin. While QAccel permits only application level key-bindings, AcceKeyHandler allows to define key-bindings on widget level. This is useful when the action of the key binding should affect on...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/error.py
# 9xx : file io error ERR_TDF_IMPORT = 900 ERR_TDF_EXPORT = 901 ERR_TRANS_IMPORT = 910 ERR_TRANS_EXPORT = 911 ERR_TYP_IMPORT = 920 ERR_TXT_EXPORT = 931 ERRORS = { 900:"tdf file import error", 901:"tdf file export error", 910:"transcriber file import error", 911:"transcriber file export error", 920:...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/tableproxy.py
from qt import QObject, PYSIGNAL __all__ = ['getProxy'] class UndoStack: def __init__(self): self.reset() def reset(self): self._stack = [] self._top = -1 self._limit = -1 def prev(self): if self._top >= 0: r = self._stack[self._top] ...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/tableedit_qtable.py
from qttable import QTable from qt import SIGNAL,PYSIGNAL class TableEdit(QTable): def __init__(self, parent=None): QTable.__init__(self, parent) self.data = None def setData(self, data): self.removeColumns(range(self.numCols())) self.removeRows(range(self.numRows())) ...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/tree_qt.py
from qt import QObject, PYSIGNAL from tree import TreeModel as PureTree __all__ = ['TreeModel'] class TreeModel(PureTree, QObject): def __init__(self): PureTree.__init__(self) QObject.__init__(self) def attach(self,node): if PureTree.attach(self,node): self.emit(PYSIGNAL("...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/at_lite/__init__.py
""" """ from tree_qt import * from treeedit_qlistview import * from table_qt import * from tableedit_qtable import *
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/lpath/README
This directory contains a prototype interpreter for LPath, a linguistic path language extending XPath. It converts LPath expressions into SQL, for execution against a treebank stored in a database (MySQL, Postgresql, Oracle have been tested). Work is ongoing to produce more efficient SQL output. http://projects.ldc.up...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/lpath/lpath.py
import time T0 = time.time() import sys import re from nltk import parse_cfg from nltk import Tree from nltk import parse __all__ = ["translate", "translate2", "get_profile", "get_grammar", "get_base_grammar", "tokenize"] GR = "" # The following is the LPath+ grammar. # Some rules of original grammar, which appear...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/lpath/loadtbl-direct.sh
#! /bin/sh usage() { cat <<EOF usage: `basename $0` [-h] [-i <psql>] [-d <database>] [<file list>] -h display usage -i specify psql command -d specify database name <psql> is a query interface program provided by postgresql. By default, "psql" is assigned to the option. <database> is th...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/lpath/lpath-schema.sql
create table TABLE ( sid int, tid int, id int, pid int, l int, r int, d int, type varchar(32), name varchar(32), value varchar(128) ); create index TABLE_all_idx on TABLE (name,type,sid,tid,id,pid,l,r,d,value); create index TABLE_sid_idx on TABLE (sid, tid, l, r, d); create index TABLE_value_idx on TABLE (value, type,...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/lpath/tb2tbl.py
import sys import os import codecs import socket import re from optparse import OptionParser import platform from nltk_contrib.lpath.at_lite.table import TableModel from nltk_contrib.lpath.at_lite.tree import TreeModel def tb2tbl(tree,a,b): #conn.begin() #cursor.execute("begin") for r in tree.exportLPathT...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/lpath/loadtbl.sh
#! /bin/sh usage() { cat <<EOF usage: `basename $0` [-i <psql>] [-u <psql user>] [-d <database>] <table file> <psql> is a query interface program provided by postgresql. By default, "psql" is assigned to the option. <psql user> is a user of the database. <database> is the database in which ...
0
public_repos/nltk_contrib/nltk_contrib/lpath
public_repos/nltk_contrib/nltk_contrib/lpath/lpath/__init__.py
from lpath import *
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/tag.py
import os import re import subprocess try: from cStringIO import StringIO except: from StringIO import StringIO from nltk.util import LazyMap, LazyConcatenation from nltk.internals import find_binary, java from nltk.tag import TaggerI from nltk_contrib.coref import CorpusReaderDecorator class TaggerCorpusRe...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/ace2.py
# Natural Language Toolkit (NLTK) ACE-2 Corpus Reader # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: http://nltk.org # For license information, see LICENSE.TXT """ Corpus reader for the ACE-2 Corpus. """ from sgmllib import SGMLParser from nltk.corpus.reader.api i...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/ne.py
# Natural Language Toolkit (NLTK) Coreference Named Entity Components # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT import re import os import sys import optparse from tempfile import mkstemp import...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/freiburg.py
# Natural Language Toolkit (NLTK) Freiburg Corpora Reader # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: http://nltk.org # For license information, see LICENSE.TXT """ Corpus reader for the Freiburg Corpora. """ from sgmllib import SGMLParser from nltk.corpus.read...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/chunk.py
# Natural Language Toolkit (NLTK) Coreference Chunking Utilities # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT import re import os import sys import nltk from nltk.util import LazyMap from nltk.data ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/features.py
# Natural Language Toolkit (NLTK) Coreference Feature Functions # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # Ewan Klein <ewan@inf.ed.ac.uk> (modifications) # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT import re import math from nltk....
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/resolve.py
# Natural Language Toolkit (NLTK) Coreference Resolver # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT import gzip import time import optparse try: import cPickle as pickle except: import pickl...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/api.py
# Natural Language Toolkit (NLTK) Coreference API # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT import os from nltk.corpus import CorpusReader from nltk.tokenize.punkt import PunktWordTokenizer from ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/util.py
# Natural Language Toolkit (NLTK) Coreference Utilities # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT import time try: import cPickle as pickle except: import pickle try: from cStrin...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/data.py
# Natural Language Toolkit (NLTK) Coreference Data Utilities # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT from zlib import Z_SYNC_FLUSH from gzip import GzipFile, READ as GZ_READ, WRITE as GZ_WRITE ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/muc7.py
# Natural Language Toolkit (NLTK) MUC-7 Corpus Reader # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: http://nltk.org # For license information, see LICENSE.TXT """ Corpus reader for the MUC-7 Corpus. """ from sgmllib import SGMLParser from nltk.corpus.reader.api i...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/muc.py
# Natural Language Toolkit (NLTK) MUC Corpus Reader # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # Steven Bird <sb@csse.unimelb.edu.au> (original IEER Corpus Reader) # Edward Loper <edloper@gradient.cis.upenn.edu> (original IEER Corpus # Reader) # ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/train.py
# Natural Language Toolkit (NLTK) Coreference Training Utilities # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT import gzip import time from nltk.util import LazyMap from nltk.classify import MaxentCl...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/coref/__init__.py
# Natural Language Toolkit (NLTK) Coreference Module # # Copyright (C) 2001-2011 NLTK Project # Author: Joseph Frazee <jfrazee@mail.utexas.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT """ Classes and interfaces for coreference resolution. """ ##///////////////////////////////////////...
0
public_repos/nltk_contrib/nltk_contrib/coref
public_repos/nltk_contrib/nltk_contrib/coref/test/chunk.doctest
>>> from nltk_contrib.coref.chunk import flatten, unflatten >>> >>> flatten((('the', 'DT'), 'B-NP')) ('the', 'DT', 'B-NP') >>> unflatten(('the', 'DT', 'B-NP')) (('the', 'DT'), 'B-NP') >>> flatten((('the', ('DT', 'NP/N')), 'B-NP')) ('the', 'DT', 'NP/N', 'B-NP') >>> flatten('the') ...
0
public_repos/nltk_contrib/nltk_contrib/coref
public_repos/nltk_contrib/nltk_contrib/coref/test/models.doctest
>>> import os.path >>> import nltk.data >>> >>> from nltk.corpus import treebank >>> >>> import nltk_contrib.coref >>> from nltk_contrib.coref.chunk import * >>> from nltk_contrib.coref.ne import * >>> >>> nltk.data.path.insert(0, '%s/data' % os.path.dirname(nltk_contrib.core...
0
public_repos/nltk_contrib/nltk_contrib/coref
public_repos/nltk_contrib/nltk_contrib/coref/test/ne.doctest
>>> from nltk_contrib.coref import muc6 >>> from nltk_contrib.coref.chunk import NaiveBayesChunkTagger >>> from nltk_contrib.coref.ne import NERChunkTaggerFeatureDetector, _NE_CHUNK_TYPES >>> >>> iob_train_toks = map(lambda iob_sent: [(w, None, i) for w, i in iob_sent], muc6.iob_sents()[0:500]) ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/fst/fst2.py
# Natural Language Toolkit: Finite State Transducers # # Copyright (C) 2001-2011 NLTK Project # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # Steven Bird <sb@csse.unimelb.edu.au> # Jonathan Epstein <gieguy98@gmail.com> -- additions # # URL: <http://www.nltk.org/> # For license information, see...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/fst/fst.py
# Natural Language Toolkit: Finite State Transducers # # Copyright (C) 2001-2011 NLTK Project # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # Steven Bird <sb@csse.unimelb.edu.au> # # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT """ Finite state transducers. A finite state ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/fst/draw_graph.py
# Natural Language Toolkit: Graph Visualization # # Copyright (C) 2001 NLTK Project # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT # # $Id: graph.py,v 1.2 2004/03/18 21:02:36 edloper Exp $ """ Graphically display a graph. This module ...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/fst/__init__.py
""" Finite state transducer support, including graphical display & demo, and interface code for AT&T fsmtools. """
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/morph.py
## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing, software ## distributed...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/extractor.html
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module extractor</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom>&nbsp;<br> <font color="#ffffff" face="helvetica, aria...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/extractor_unittest.py
## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing, software ## distributed...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/perceptron_trainer_unittest.py
# -*- coding: utf-8 -*- ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/token_comp.py
# -*- coding: utf-8 -*- ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/generate_testdata.sh
#!/bin/bash ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing, software ##...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/token_comp.html
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module token_comp</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom>&nbsp;<br> <font color="#ffffff" face="helvetica, ari...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/chinese_extractor.py
# -*- coding: utf-8 -*- ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/documents.py
# -*- coding: utf-8 -*- ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/xmlhandler.py
# -*- coding: utf-8 -*- ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/perceptron_trainer.py
# -*- coding: utf-8 -*- ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing...
0
public_repos/nltk_contrib/nltk_contrib
public_repos/nltk_contrib/nltk_contrib/scripttranscriber/filter.py
# -*- coding: utf-8 -*- ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing...
0