NlpToolkit-FrameNet-Cy 1.0.8__tar.gz → 1.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/Frame.c +174 -152
- NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/Frame.pyx +72 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameElement.c +1176 -783
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameElement.pxd +3 -1
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameElement.pyx +16 -5
- NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/FrameElementList.c +7599 -0
- NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/FrameElementList.pxd +11 -0
- NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/FrameElementList.pyx +114 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameNet.c +185 -165
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameNet.pyx +23 -0
- NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/data/framenet.xml +22005 -0
- NlpToolkit-FrameNet-Cy-1.0.9/NlpToolkit_FrameNet_Cy.egg-info/PKG-INFO +122 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/NlpToolkit_FrameNet_Cy.egg-info/SOURCES.txt +3 -0
- NlpToolkit-FrameNet-Cy-1.0.9/PKG-INFO +122 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/README.md +1 -1
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/setup.py +1 -1
- NlpToolkit-FrameNet-Cy-1.0.8/FrameNet/Frame.pyx +0 -33
- NlpToolkit-FrameNet-Cy-1.0.8/FrameNet/data/framenet.xml +0 -5062
- NlpToolkit-FrameNet-Cy-1.0.8/NlpToolkit_FrameNet_Cy.egg-info/PKG-INFO +0 -121
- NlpToolkit-FrameNet-Cy-1.0.8/PKG-INFO +0 -121
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/Frame.pxd +0 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameNet.pxd +0 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/__init__.py +0 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/data/__init__.py +0 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/LICENSE +0 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/NlpToolkit_FrameNet_Cy.egg-info/dependency_links.txt +0 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/NlpToolkit_FrameNet_Cy.egg-info/top_level.txt +0 -0
- {NlpToolkit-FrameNet-Cy-1.0.8 → NlpToolkit-FrameNet-Cy-1.0.9}/setup.cfg +0 -0
|
@@ -1399,12 +1399,16 @@ static PyObject *__pyx_codeobj__3;
|
|
|
1399
1399
|
* cdef class Frame:
|
|
1400
1400
|
*
|
|
1401
1401
|
* def __init__(self, name: str): # <<<<<<<<<<<<<<
|
|
1402
|
-
*
|
|
1403
|
-
*
|
|
1402
|
+
* """
|
|
1403
|
+
* Constructor of Frame class which takes inputStream as input and reads the frame
|
|
1404
1404
|
*/
|
|
1405
1405
|
|
|
1406
1406
|
/* Python wrapper */
|
|
1407
1407
|
static int __pyx_pw_8FrameNet_5Frame_5Frame_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
1408
|
+
static char __pyx_doc_8FrameNet_5Frame_5Frame___init__[] = "\n Constructor of Frame class which takes inputStream as input and reads the frame\n :param name: Name of the frame\n ";
|
|
1409
|
+
#if CYTHON_COMPILING_IN_CPYTHON
|
|
1410
|
+
struct wrapperbase __pyx_wrapperbase_8FrameNet_5Frame_5Frame___init__;
|
|
1411
|
+
#endif
|
|
1408
1412
|
static int __pyx_pw_8FrameNet_5Frame_5Frame_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
1409
1413
|
PyObject *__pyx_v_name = 0;
|
|
1410
1414
|
int __pyx_lineno = 0;
|
|
@@ -1470,14 +1474,14 @@ static int __pyx_pf_8FrameNet_5Frame_5Frame___init__(struct __pyx_obj_8FrameNet_
|
|
|
1470
1474
|
int __pyx_clineno = 0;
|
|
1471
1475
|
__Pyx_RefNannySetupContext("__init__", 0);
|
|
1472
1476
|
|
|
1473
|
-
/* "FrameNet/Frame.pyx":
|
|
1474
|
-
*
|
|
1475
|
-
*
|
|
1477
|
+
/* "FrameNet/Frame.pyx":8
|
|
1478
|
+
* :param name: Name of the frame
|
|
1479
|
+
* """
|
|
1476
1480
|
* self.__lexical_units = [] # <<<<<<<<<<<<<<
|
|
1477
1481
|
* self.__frame_elements = []
|
|
1478
1482
|
* self.__name = name
|
|
1479
1483
|
*/
|
|
1480
|
-
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
1484
|
+
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
|
|
1481
1485
|
__Pyx_GOTREF(__pyx_t_1);
|
|
1482
1486
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
1483
1487
|
__Pyx_GOTREF(__pyx_v_self->__pyx___lexical_units);
|
|
@@ -1485,14 +1489,14 @@ static int __pyx_pf_8FrameNet_5Frame_5Frame___init__(struct __pyx_obj_8FrameNet_
|
|
|
1485
1489
|
__pyx_v_self->__pyx___lexical_units = ((PyObject*)__pyx_t_1);
|
|
1486
1490
|
__pyx_t_1 = 0;
|
|
1487
1491
|
|
|
1488
|
-
/* "FrameNet/Frame.pyx":
|
|
1489
|
-
*
|
|
1492
|
+
/* "FrameNet/Frame.pyx":9
|
|
1493
|
+
* """
|
|
1490
1494
|
* self.__lexical_units = []
|
|
1491
1495
|
* self.__frame_elements = [] # <<<<<<<<<<<<<<
|
|
1492
1496
|
* self.__name = name
|
|
1493
1497
|
*
|
|
1494
1498
|
*/
|
|
1495
|
-
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
1499
|
+
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error)
|
|
1496
1500
|
__Pyx_GOTREF(__pyx_t_1);
|
|
1497
1501
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
1498
1502
|
__Pyx_GOTREF(__pyx_v_self->__pyx___frame_elements);
|
|
@@ -1500,7 +1504,7 @@ static int __pyx_pf_8FrameNet_5Frame_5Frame___init__(struct __pyx_obj_8FrameNet_
|
|
|
1500
1504
|
__pyx_v_self->__pyx___frame_elements = ((PyObject*)__pyx_t_1);
|
|
1501
1505
|
__pyx_t_1 = 0;
|
|
1502
1506
|
|
|
1503
|
-
/* "FrameNet/Frame.pyx":
|
|
1507
|
+
/* "FrameNet/Frame.pyx":10
|
|
1504
1508
|
* self.__lexical_units = []
|
|
1505
1509
|
* self.__frame_elements = []
|
|
1506
1510
|
* self.__name = name # <<<<<<<<<<<<<<
|
|
@@ -1517,8 +1521,8 @@ static int __pyx_pf_8FrameNet_5Frame_5Frame___init__(struct __pyx_obj_8FrameNet_
|
|
|
1517
1521
|
* cdef class Frame:
|
|
1518
1522
|
*
|
|
1519
1523
|
* def __init__(self, name: str): # <<<<<<<<<<<<<<
|
|
1520
|
-
*
|
|
1521
|
-
*
|
|
1524
|
+
* """
|
|
1525
|
+
* Constructor of Frame class which takes inputStream as input and reads the frame
|
|
1522
1526
|
*/
|
|
1523
1527
|
|
|
1524
1528
|
/* function exit code */
|
|
@@ -1533,12 +1537,12 @@ static int __pyx_pf_8FrameNet_5Frame_5Frame___init__(struct __pyx_obj_8FrameNet_
|
|
|
1533
1537
|
return __pyx_r;
|
|
1534
1538
|
}
|
|
1535
1539
|
|
|
1536
|
-
/* "FrameNet/Frame.pyx":
|
|
1540
|
+
/* "FrameNet/Frame.pyx":12
|
|
1537
1541
|
* self.__name = name
|
|
1538
1542
|
*
|
|
1539
1543
|
* cpdef addLexicalUnit(self, str lexicalUnit): # <<<<<<<<<<<<<<
|
|
1540
|
-
*
|
|
1541
|
-
*
|
|
1544
|
+
* """
|
|
1545
|
+
* Adds a new lexical unit to the current frame
|
|
1542
1546
|
*/
|
|
1543
1547
|
|
|
1544
1548
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_v_lexicalUnit); /*proto*/
|
|
@@ -1563,7 +1567,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(struct __pyx_obj
|
|
|
1563
1567
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
1564
1568
|
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
1565
1569
|
#endif
|
|
1566
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_addLexicalUnit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
1570
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_addLexicalUnit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error)
|
|
1567
1571
|
__Pyx_GOTREF(__pyx_t_1);
|
|
1568
1572
|
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit)) {
|
|
1569
1573
|
__Pyx_XDECREF(__pyx_r);
|
|
@@ -1580,7 +1584,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(struct __pyx_obj
|
|
|
1580
1584
|
}
|
|
1581
1585
|
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_lexicalUnit) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_lexicalUnit);
|
|
1582
1586
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
1583
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
1587
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error)
|
|
1584
1588
|
__Pyx_GOTREF(__pyx_t_2);
|
|
1585
1589
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
1586
1590
|
__pyx_r = __pyx_t_2;
|
|
@@ -1601,25 +1605,25 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(struct __pyx_obj
|
|
|
1601
1605
|
#endif
|
|
1602
1606
|
}
|
|
1603
1607
|
|
|
1604
|
-
/* "FrameNet/Frame.pyx":
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1608
|
+
/* "FrameNet/Frame.pyx":17
|
|
1609
|
+
* :param lexicalUnit: lexicalUnit Lexical unit to be added
|
|
1610
|
+
* """
|
|
1607
1611
|
* self.__lexical_units.append(lexicalUnit) # <<<<<<<<<<<<<<
|
|
1608
1612
|
*
|
|
1609
1613
|
* cpdef addFrameElement(self, str frameElement):
|
|
1610
1614
|
*/
|
|
1611
1615
|
if (unlikely(__pyx_v_self->__pyx___lexical_units == Py_None)) {
|
|
1612
1616
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
|
|
1613
|
-
__PYX_ERR(0,
|
|
1617
|
+
__PYX_ERR(0, 17, __pyx_L1_error)
|
|
1614
1618
|
}
|
|
1615
|
-
__pyx_t_5 = __Pyx_PyList_Append(__pyx_v_self->__pyx___lexical_units, __pyx_v_lexicalUnit); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0,
|
|
1619
|
+
__pyx_t_5 = __Pyx_PyList_Append(__pyx_v_self->__pyx___lexical_units, __pyx_v_lexicalUnit); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 17, __pyx_L1_error)
|
|
1616
1620
|
|
|
1617
|
-
/* "FrameNet/Frame.pyx":
|
|
1621
|
+
/* "FrameNet/Frame.pyx":12
|
|
1618
1622
|
* self.__name = name
|
|
1619
1623
|
*
|
|
1620
1624
|
* cpdef addLexicalUnit(self, str lexicalUnit): # <<<<<<<<<<<<<<
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1625
|
+
* """
|
|
1626
|
+
* Adds a new lexical unit to the current frame
|
|
1623
1627
|
*/
|
|
1624
1628
|
|
|
1625
1629
|
/* function exit code */
|
|
@@ -1640,6 +1644,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(struct __pyx_obj
|
|
|
1640
1644
|
|
|
1641
1645
|
/* Python wrapper */
|
|
1642
1646
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_v_lexicalUnit); /*proto*/
|
|
1647
|
+
static char __pyx_doc_8FrameNet_5Frame_5Frame_2addLexicalUnit[] = "\n Adds a new lexical unit to the current frame\n :param lexicalUnit: lexicalUnit Lexical unit to be added\n ";
|
|
1643
1648
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_v_lexicalUnit) {
|
|
1644
1649
|
int __pyx_lineno = 0;
|
|
1645
1650
|
const char *__pyx_filename = NULL;
|
|
@@ -1647,7 +1652,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit(PyObject *__py
|
|
|
1647
1652
|
PyObject *__pyx_r = 0;
|
|
1648
1653
|
__Pyx_RefNannyDeclarations
|
|
1649
1654
|
__Pyx_RefNannySetupContext("addLexicalUnit (wrapper)", 0);
|
|
1650
|
-
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lexicalUnit), (&PyUnicode_Type), 1, "lexicalUnit", 1))) __PYX_ERR(0,
|
|
1655
|
+
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lexicalUnit), (&PyUnicode_Type), 1, "lexicalUnit", 1))) __PYX_ERR(0, 12, __pyx_L1_error)
|
|
1651
1656
|
__pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_2addLexicalUnit(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self), ((PyObject*)__pyx_v_lexicalUnit));
|
|
1652
1657
|
|
|
1653
1658
|
/* function exit code */
|
|
@@ -1668,7 +1673,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_2addLexicalUnit(struct __pyx_o
|
|
|
1668
1673
|
int __pyx_clineno = 0;
|
|
1669
1674
|
__Pyx_RefNannySetupContext("addLexicalUnit", 0);
|
|
1670
1675
|
__Pyx_XDECREF(__pyx_r);
|
|
1671
|
-
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(__pyx_v_self, __pyx_v_lexicalUnit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
1676
|
+
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(__pyx_v_self, __pyx_v_lexicalUnit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error)
|
|
1672
1677
|
__Pyx_GOTREF(__pyx_t_1);
|
|
1673
1678
|
__pyx_r = __pyx_t_1;
|
|
1674
1679
|
__pyx_t_1 = 0;
|
|
@@ -1685,12 +1690,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_2addLexicalUnit(struct __pyx_o
|
|
|
1685
1690
|
return __pyx_r;
|
|
1686
1691
|
}
|
|
1687
1692
|
|
|
1688
|
-
/* "FrameNet/Frame.pyx":
|
|
1693
|
+
/* "FrameNet/Frame.pyx":19
|
|
1689
1694
|
* self.__lexical_units.append(lexicalUnit)
|
|
1690
1695
|
*
|
|
1691
1696
|
* cpdef addFrameElement(self, str frameElement): # <<<<<<<<<<<<<<
|
|
1692
|
-
*
|
|
1693
|
-
*
|
|
1697
|
+
* """
|
|
1698
|
+
* Adds a new frame element to the current frame
|
|
1694
1699
|
*/
|
|
1695
1700
|
|
|
1696
1701
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_v_frameElement); /*proto*/
|
|
@@ -1715,7 +1720,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(struct __pyx_ob
|
|
|
1715
1720
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
1716
1721
|
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
1717
1722
|
#endif
|
|
1718
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_addFrameElement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
1723
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_addFrameElement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error)
|
|
1719
1724
|
__Pyx_GOTREF(__pyx_t_1);
|
|
1720
1725
|
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement)) {
|
|
1721
1726
|
__Pyx_XDECREF(__pyx_r);
|
|
@@ -1732,7 +1737,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(struct __pyx_ob
|
|
|
1732
1737
|
}
|
|
1733
1738
|
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_frameElement) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_frameElement);
|
|
1734
1739
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
1735
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
1740
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error)
|
|
1736
1741
|
__Pyx_GOTREF(__pyx_t_2);
|
|
1737
1742
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
1738
1743
|
__pyx_r = __pyx_t_2;
|
|
@@ -1753,25 +1758,25 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(struct __pyx_ob
|
|
|
1753
1758
|
#endif
|
|
1754
1759
|
}
|
|
1755
1760
|
|
|
1756
|
-
/* "FrameNet/Frame.pyx":
|
|
1757
|
-
*
|
|
1758
|
-
*
|
|
1761
|
+
/* "FrameNet/Frame.pyx":24
|
|
1762
|
+
* :param frameElement: Frame element to be added
|
|
1763
|
+
* """
|
|
1759
1764
|
* self.__frame_elements.append(frameElement) # <<<<<<<<<<<<<<
|
|
1760
1765
|
*
|
|
1761
1766
|
* cpdef bint lexicalUnitExists(self, str synSetId):
|
|
1762
1767
|
*/
|
|
1763
1768
|
if (unlikely(__pyx_v_self->__pyx___frame_elements == Py_None)) {
|
|
1764
1769
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
|
|
1765
|
-
__PYX_ERR(0,
|
|
1770
|
+
__PYX_ERR(0, 24, __pyx_L1_error)
|
|
1766
1771
|
}
|
|
1767
|
-
__pyx_t_5 = __Pyx_PyList_Append(__pyx_v_self->__pyx___frame_elements, __pyx_v_frameElement); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0,
|
|
1772
|
+
__pyx_t_5 = __Pyx_PyList_Append(__pyx_v_self->__pyx___frame_elements, __pyx_v_frameElement); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 24, __pyx_L1_error)
|
|
1768
1773
|
|
|
1769
|
-
/* "FrameNet/Frame.pyx":
|
|
1774
|
+
/* "FrameNet/Frame.pyx":19
|
|
1770
1775
|
* self.__lexical_units.append(lexicalUnit)
|
|
1771
1776
|
*
|
|
1772
1777
|
* cpdef addFrameElement(self, str frameElement): # <<<<<<<<<<<<<<
|
|
1773
|
-
*
|
|
1774
|
-
*
|
|
1778
|
+
* """
|
|
1779
|
+
* Adds a new frame element to the current frame
|
|
1775
1780
|
*/
|
|
1776
1781
|
|
|
1777
1782
|
/* function exit code */
|
|
@@ -1792,6 +1797,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(struct __pyx_ob
|
|
|
1792
1797
|
|
|
1793
1798
|
/* Python wrapper */
|
|
1794
1799
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_v_frameElement); /*proto*/
|
|
1800
|
+
static char __pyx_doc_8FrameNet_5Frame_5Frame_4addFrameElement[] = "\n Adds a new frame element to the current frame\n :param frameElement: Frame element to be added\n ";
|
|
1795
1801
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_v_frameElement) {
|
|
1796
1802
|
int __pyx_lineno = 0;
|
|
1797
1803
|
const char *__pyx_filename = NULL;
|
|
@@ -1799,7 +1805,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement(PyObject *__p
|
|
|
1799
1805
|
PyObject *__pyx_r = 0;
|
|
1800
1806
|
__Pyx_RefNannyDeclarations
|
|
1801
1807
|
__Pyx_RefNannySetupContext("addFrameElement (wrapper)", 0);
|
|
1802
|
-
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_frameElement), (&PyUnicode_Type), 1, "frameElement", 1))) __PYX_ERR(0,
|
|
1808
|
+
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_frameElement), (&PyUnicode_Type), 1, "frameElement", 1))) __PYX_ERR(0, 19, __pyx_L1_error)
|
|
1803
1809
|
__pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_4addFrameElement(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self), ((PyObject*)__pyx_v_frameElement));
|
|
1804
1810
|
|
|
1805
1811
|
/* function exit code */
|
|
@@ -1820,7 +1826,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_4addFrameElement(struct __pyx_
|
|
|
1820
1826
|
int __pyx_clineno = 0;
|
|
1821
1827
|
__Pyx_RefNannySetupContext("addFrameElement", 0);
|
|
1822
1828
|
__Pyx_XDECREF(__pyx_r);
|
|
1823
|
-
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(__pyx_v_self, __pyx_v_frameElement, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
1829
|
+
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(__pyx_v_self, __pyx_v_frameElement, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error)
|
|
1824
1830
|
__Pyx_GOTREF(__pyx_t_1);
|
|
1825
1831
|
__pyx_r = __pyx_t_1;
|
|
1826
1832
|
__pyx_t_1 = 0;
|
|
@@ -1837,12 +1843,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_4addFrameElement(struct __pyx_
|
|
|
1837
1843
|
return __pyx_r;
|
|
1838
1844
|
}
|
|
1839
1845
|
|
|
1840
|
-
/* "FrameNet/Frame.pyx":
|
|
1846
|
+
/* "FrameNet/Frame.pyx":26
|
|
1841
1847
|
* self.__frame_elements.append(frameElement)
|
|
1842
1848
|
*
|
|
1843
1849
|
* cpdef bint lexicalUnitExists(self, str synSetId): # <<<<<<<<<<<<<<
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1850
|
+
* """
|
|
1851
|
+
* Checks if the given lexical unit exists in the current frame
|
|
1846
1852
|
*/
|
|
1847
1853
|
|
|
1848
1854
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists(PyObject *__pyx_v_self, PyObject *__pyx_v_synSetId); /*proto*/
|
|
@@ -1867,7 +1873,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(struct __pyx_obj_8F
|
|
|
1867
1873
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
1868
1874
|
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
1869
1875
|
#endif
|
|
1870
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lexicalUnitExists); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
1876
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lexicalUnitExists); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
1871
1877
|
__Pyx_GOTREF(__pyx_t_1);
|
|
1872
1878
|
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists)) {
|
|
1873
1879
|
__Pyx_INCREF(__pyx_t_1);
|
|
@@ -1883,10 +1889,10 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(struct __pyx_obj_8F
|
|
|
1883
1889
|
}
|
|
1884
1890
|
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_synSetId) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_synSetId);
|
|
1885
1891
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
1886
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
1892
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
1887
1893
|
__Pyx_GOTREF(__pyx_t_2);
|
|
1888
1894
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
1889
|
-
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
1895
|
+
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
1890
1896
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
1891
1897
|
__pyx_r = __pyx_t_5;
|
|
1892
1898
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
@@ -1905,23 +1911,23 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(struct __pyx_obj_8F
|
|
|
1905
1911
|
#endif
|
|
1906
1912
|
}
|
|
1907
1913
|
|
|
1908
|
-
/* "FrameNet/Frame.pyx":
|
|
1909
|
-
*
|
|
1910
|
-
*
|
|
1914
|
+
/* "FrameNet/Frame.pyx":32
|
|
1915
|
+
* :return: True if the lexical unit exists, false otherwise.
|
|
1916
|
+
* """
|
|
1911
1917
|
* return synSetId in self.__lexical_units # <<<<<<<<<<<<<<
|
|
1912
1918
|
*
|
|
1913
1919
|
* cpdef str getLexicalUnit(self, int index):
|
|
1914
1920
|
*/
|
|
1915
|
-
__pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_v_synSetId, __pyx_v_self->__pyx___lexical_units, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0,
|
|
1921
|
+
__pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_v_synSetId, __pyx_v_self->__pyx___lexical_units, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 32, __pyx_L1_error)
|
|
1916
1922
|
__pyx_r = __pyx_t_5;
|
|
1917
1923
|
goto __pyx_L0;
|
|
1918
1924
|
|
|
1919
|
-
/* "FrameNet/Frame.pyx":
|
|
1925
|
+
/* "FrameNet/Frame.pyx":26
|
|
1920
1926
|
* self.__frame_elements.append(frameElement)
|
|
1921
1927
|
*
|
|
1922
1928
|
* cpdef bint lexicalUnitExists(self, str synSetId): # <<<<<<<<<<<<<<
|
|
1923
|
-
*
|
|
1924
|
-
*
|
|
1929
|
+
* """
|
|
1930
|
+
* Checks if the given lexical unit exists in the current frame
|
|
1925
1931
|
*/
|
|
1926
1932
|
|
|
1927
1933
|
/* function exit code */
|
|
@@ -1939,6 +1945,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(struct __pyx_obj_8F
|
|
|
1939
1945
|
|
|
1940
1946
|
/* Python wrapper */
|
|
1941
1947
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists(PyObject *__pyx_v_self, PyObject *__pyx_v_synSetId); /*proto*/
|
|
1948
|
+
static char __pyx_doc_8FrameNet_5Frame_5Frame_6lexicalUnitExists[] = "\n Checks if the given lexical unit exists in the current frame\n :param synSetId: Lexical unit to be searched.\n :return: True if the lexical unit exists, false otherwise.\n ";
|
|
1942
1949
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists(PyObject *__pyx_v_self, PyObject *__pyx_v_synSetId) {
|
|
1943
1950
|
int __pyx_lineno = 0;
|
|
1944
1951
|
const char *__pyx_filename = NULL;
|
|
@@ -1946,7 +1953,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists(PyObject *_
|
|
|
1946
1953
|
PyObject *__pyx_r = 0;
|
|
1947
1954
|
__Pyx_RefNannyDeclarations
|
|
1948
1955
|
__Pyx_RefNannySetupContext("lexicalUnitExists (wrapper)", 0);
|
|
1949
|
-
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_synSetId), (&PyUnicode_Type), 1, "synSetId", 1))) __PYX_ERR(0,
|
|
1956
|
+
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_synSetId), (&PyUnicode_Type), 1, "synSetId", 1))) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
1950
1957
|
__pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_6lexicalUnitExists(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self), ((PyObject*)__pyx_v_synSetId));
|
|
1951
1958
|
|
|
1952
1959
|
/* function exit code */
|
|
@@ -1967,7 +1974,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_6lexicalUnitExists(struct __py
|
|
|
1967
1974
|
int __pyx_clineno = 0;
|
|
1968
1975
|
__Pyx_RefNannySetupContext("lexicalUnitExists", 0);
|
|
1969
1976
|
__Pyx_XDECREF(__pyx_r);
|
|
1970
|
-
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(__pyx_v_self, __pyx_v_synSetId, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
1977
|
+
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(__pyx_v_self, __pyx_v_synSetId, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
1971
1978
|
__Pyx_GOTREF(__pyx_t_1);
|
|
1972
1979
|
__pyx_r = __pyx_t_1;
|
|
1973
1980
|
__pyx_t_1 = 0;
|
|
@@ -1984,12 +1991,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_6lexicalUnitExists(struct __py
|
|
|
1984
1991
|
return __pyx_r;
|
|
1985
1992
|
}
|
|
1986
1993
|
|
|
1987
|
-
/* "FrameNet/Frame.pyx":
|
|
1994
|
+
/* "FrameNet/Frame.pyx":34
|
|
1988
1995
|
* return synSetId in self.__lexical_units
|
|
1989
1996
|
*
|
|
1990
1997
|
* cpdef str getLexicalUnit(self, int index): # <<<<<<<<<<<<<<
|
|
1991
|
-
*
|
|
1992
|
-
*
|
|
1998
|
+
* """
|
|
1999
|
+
* Accessor for a given index in the lexicalUnit array.
|
|
1993
2000
|
*/
|
|
1994
2001
|
|
|
1995
2002
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_arg_index); /*proto*/
|
|
@@ -2014,11 +2021,11 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(struct __pyx_obj
|
|
|
2014
2021
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
2015
2022
|
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
2016
2023
|
#endif
|
|
2017
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getLexicalUnit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2024
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getLexicalUnit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error)
|
|
2018
2025
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2019
2026
|
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit)) {
|
|
2020
2027
|
__Pyx_XDECREF(__pyx_r);
|
|
2021
|
-
__pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
2028
|
+
__pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34, __pyx_L1_error)
|
|
2022
2029
|
__Pyx_GOTREF(__pyx_t_3);
|
|
2023
2030
|
__Pyx_INCREF(__pyx_t_1);
|
|
2024
2031
|
__pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
|
|
@@ -2034,10 +2041,10 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(struct __pyx_obj
|
|
|
2034
2041
|
__pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
|
|
2035
2042
|
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
2036
2043
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
2037
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
2044
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error)
|
|
2038
2045
|
__Pyx_GOTREF(__pyx_t_2);
|
|
2039
2046
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
2040
|
-
if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0,
|
|
2047
|
+
if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 34, __pyx_L1_error)
|
|
2041
2048
|
__pyx_r = ((PyObject*)__pyx_t_2);
|
|
2042
2049
|
__pyx_t_2 = 0;
|
|
2043
2050
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
@@ -2056,9 +2063,9 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(struct __pyx_obj
|
|
|
2056
2063
|
#endif
|
|
2057
2064
|
}
|
|
2058
2065
|
|
|
2059
|
-
/* "FrameNet/Frame.pyx":
|
|
2060
|
-
*
|
|
2061
|
-
*
|
|
2066
|
+
/* "FrameNet/Frame.pyx":40
|
|
2067
|
+
* :return: The lexical unit at position index in the lexicalUnit array
|
|
2068
|
+
* """
|
|
2062
2069
|
* return self.__lexical_units[index] # <<<<<<<<<<<<<<
|
|
2063
2070
|
*
|
|
2064
2071
|
* cpdef str getFrameElement(self, int index):
|
|
@@ -2066,21 +2073,21 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(struct __pyx_obj
|
|
|
2066
2073
|
__Pyx_XDECREF(__pyx_r);
|
|
2067
2074
|
if (unlikely(__pyx_v_self->__pyx___lexical_units == Py_None)) {
|
|
2068
2075
|
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
|
|
2069
|
-
__PYX_ERR(0,
|
|
2076
|
+
__PYX_ERR(0, 40, __pyx_L1_error)
|
|
2070
2077
|
}
|
|
2071
|
-
__pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->__pyx___lexical_units, __pyx_v_index, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2078
|
+
__pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->__pyx___lexical_units, __pyx_v_index, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error)
|
|
2072
2079
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2073
|
-
if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0,
|
|
2080
|
+
if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 40, __pyx_L1_error)
|
|
2074
2081
|
__pyx_r = ((PyObject*)__pyx_t_1);
|
|
2075
2082
|
__pyx_t_1 = 0;
|
|
2076
2083
|
goto __pyx_L0;
|
|
2077
2084
|
|
|
2078
|
-
/* "FrameNet/Frame.pyx":
|
|
2085
|
+
/* "FrameNet/Frame.pyx":34
|
|
2079
2086
|
* return synSetId in self.__lexical_units
|
|
2080
2087
|
*
|
|
2081
2088
|
* cpdef str getLexicalUnit(self, int index): # <<<<<<<<<<<<<<
|
|
2082
|
-
*
|
|
2083
|
-
*
|
|
2089
|
+
* """
|
|
2090
|
+
* Accessor for a given index in the lexicalUnit array.
|
|
2084
2091
|
*/
|
|
2085
2092
|
|
|
2086
2093
|
/* function exit code */
|
|
@@ -2100,6 +2107,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(struct __pyx_obj
|
|
|
2100
2107
|
|
|
2101
2108
|
/* Python wrapper */
|
|
2102
2109
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_arg_index); /*proto*/
|
|
2110
|
+
static char __pyx_doc_8FrameNet_5Frame_5Frame_8getLexicalUnit[] = "\n Accessor for a given index in the lexicalUnit array.\n :param index: Index of the lexical unit\n :return: The lexical unit at position index in the lexicalUnit array\n ";
|
|
2103
2111
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_arg_index) {
|
|
2104
2112
|
int __pyx_v_index;
|
|
2105
2113
|
int __pyx_lineno = 0;
|
|
@@ -2109,7 +2117,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit(PyObject *__py
|
|
|
2109
2117
|
__Pyx_RefNannyDeclarations
|
|
2110
2118
|
__Pyx_RefNannySetupContext("getLexicalUnit (wrapper)", 0);
|
|
2111
2119
|
assert(__pyx_arg_index); {
|
|
2112
|
-
__pyx_v_index = __Pyx_PyInt_As_int(__pyx_arg_index); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
2120
|
+
__pyx_v_index = __Pyx_PyInt_As_int(__pyx_arg_index); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 34, __pyx_L3_error)
|
|
2113
2121
|
}
|
|
2114
2122
|
goto __pyx_L4_argument_unpacking_done;
|
|
2115
2123
|
__pyx_L3_error:;
|
|
@@ -2133,7 +2141,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_8getLexicalUnit(struct __pyx_o
|
|
|
2133
2141
|
int __pyx_clineno = 0;
|
|
2134
2142
|
__Pyx_RefNannySetupContext("getLexicalUnit", 0);
|
|
2135
2143
|
__Pyx_XDECREF(__pyx_r);
|
|
2136
|
-
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(__pyx_v_self, __pyx_v_index, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2144
|
+
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(__pyx_v_self, __pyx_v_index, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error)
|
|
2137
2145
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2138
2146
|
__pyx_r = __pyx_t_1;
|
|
2139
2147
|
__pyx_t_1 = 0;
|
|
@@ -2150,12 +2158,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_8getLexicalUnit(struct __pyx_o
|
|
|
2150
2158
|
return __pyx_r;
|
|
2151
2159
|
}
|
|
2152
2160
|
|
|
2153
|
-
/* "FrameNet/Frame.pyx":
|
|
2161
|
+
/* "FrameNet/Frame.pyx":42
|
|
2154
2162
|
* return self.__lexical_units[index]
|
|
2155
2163
|
*
|
|
2156
2164
|
* cpdef str getFrameElement(self, int index): # <<<<<<<<<<<<<<
|
|
2157
|
-
*
|
|
2158
|
-
*
|
|
2165
|
+
* """
|
|
2166
|
+
* Accessor for a given index in the frameElements array.
|
|
2159
2167
|
*/
|
|
2160
2168
|
|
|
2161
2169
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_arg_index); /*proto*/
|
|
@@ -2180,11 +2188,11 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(struct __pyx_ob
|
|
|
2180
2188
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
2181
2189
|
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
2182
2190
|
#endif
|
|
2183
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getFrameElement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2191
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getFrameElement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __pyx_L1_error)
|
|
2184
2192
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2185
2193
|
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement)) {
|
|
2186
2194
|
__Pyx_XDECREF(__pyx_r);
|
|
2187
|
-
__pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
2195
|
+
__pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 42, __pyx_L1_error)
|
|
2188
2196
|
__Pyx_GOTREF(__pyx_t_3);
|
|
2189
2197
|
__Pyx_INCREF(__pyx_t_1);
|
|
2190
2198
|
__pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
|
|
@@ -2200,10 +2208,10 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(struct __pyx_ob
|
|
|
2200
2208
|
__pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
|
|
2201
2209
|
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
2202
2210
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
2203
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
2211
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error)
|
|
2204
2212
|
__Pyx_GOTREF(__pyx_t_2);
|
|
2205
2213
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
2206
|
-
if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0,
|
|
2214
|
+
if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 42, __pyx_L1_error)
|
|
2207
2215
|
__pyx_r = ((PyObject*)__pyx_t_2);
|
|
2208
2216
|
__pyx_t_2 = 0;
|
|
2209
2217
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
@@ -2222,9 +2230,9 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(struct __pyx_ob
|
|
|
2222
2230
|
#endif
|
|
2223
2231
|
}
|
|
2224
2232
|
|
|
2225
|
-
/* "FrameNet/Frame.pyx":
|
|
2226
|
-
*
|
|
2227
|
-
*
|
|
2233
|
+
/* "FrameNet/Frame.pyx":48
|
|
2234
|
+
* :return: The frame element at position index in the frameElements array
|
|
2235
|
+
* """
|
|
2228
2236
|
* return self.__frame_elements[index] # <<<<<<<<<<<<<<
|
|
2229
2237
|
*
|
|
2230
2238
|
* cpdef int lexicalUnitSize(self):
|
|
@@ -2232,21 +2240,21 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(struct __pyx_ob
|
|
|
2232
2240
|
__Pyx_XDECREF(__pyx_r);
|
|
2233
2241
|
if (unlikely(__pyx_v_self->__pyx___frame_elements == Py_None)) {
|
|
2234
2242
|
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
|
|
2235
|
-
__PYX_ERR(0,
|
|
2243
|
+
__PYX_ERR(0, 48, __pyx_L1_error)
|
|
2236
2244
|
}
|
|
2237
|
-
__pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->__pyx___frame_elements, __pyx_v_index, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2245
|
+
__pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->__pyx___frame_elements, __pyx_v_index, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
2238
2246
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2239
|
-
if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0,
|
|
2247
|
+
if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
2240
2248
|
__pyx_r = ((PyObject*)__pyx_t_1);
|
|
2241
2249
|
__pyx_t_1 = 0;
|
|
2242
2250
|
goto __pyx_L0;
|
|
2243
2251
|
|
|
2244
|
-
/* "FrameNet/Frame.pyx":
|
|
2252
|
+
/* "FrameNet/Frame.pyx":42
|
|
2245
2253
|
* return self.__lexical_units[index]
|
|
2246
2254
|
*
|
|
2247
2255
|
* cpdef str getFrameElement(self, int index): # <<<<<<<<<<<<<<
|
|
2248
|
-
*
|
|
2249
|
-
*
|
|
2256
|
+
* """
|
|
2257
|
+
* Accessor for a given index in the frameElements array.
|
|
2250
2258
|
*/
|
|
2251
2259
|
|
|
2252
2260
|
/* function exit code */
|
|
@@ -2266,6 +2274,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(struct __pyx_ob
|
|
|
2266
2274
|
|
|
2267
2275
|
/* Python wrapper */
|
|
2268
2276
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_arg_index); /*proto*/
|
|
2277
|
+
static char __pyx_doc_8FrameNet_5Frame_5Frame_10getFrameElement[] = "\n Accessor for a given index in the frameElements array.\n :param index: Index of the frame element\n :return: The frame element at position index in the frameElements array\n ";
|
|
2269
2278
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_arg_index) {
|
|
2270
2279
|
int __pyx_v_index;
|
|
2271
2280
|
int __pyx_lineno = 0;
|
|
@@ -2275,7 +2284,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement(PyObject *__
|
|
|
2275
2284
|
__Pyx_RefNannyDeclarations
|
|
2276
2285
|
__Pyx_RefNannySetupContext("getFrameElement (wrapper)", 0);
|
|
2277
2286
|
assert(__pyx_arg_index); {
|
|
2278
|
-
__pyx_v_index = __Pyx_PyInt_As_int(__pyx_arg_index); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
2287
|
+
__pyx_v_index = __Pyx_PyInt_As_int(__pyx_arg_index); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 42, __pyx_L3_error)
|
|
2279
2288
|
}
|
|
2280
2289
|
goto __pyx_L4_argument_unpacking_done;
|
|
2281
2290
|
__pyx_L3_error:;
|
|
@@ -2299,7 +2308,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_10getFrameElement(struct __pyx
|
|
|
2299
2308
|
int __pyx_clineno = 0;
|
|
2300
2309
|
__Pyx_RefNannySetupContext("getFrameElement", 0);
|
|
2301
2310
|
__Pyx_XDECREF(__pyx_r);
|
|
2302
|
-
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(__pyx_v_self, __pyx_v_index, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2311
|
+
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(__pyx_v_self, __pyx_v_index, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __pyx_L1_error)
|
|
2303
2312
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2304
2313
|
__pyx_r = __pyx_t_1;
|
|
2305
2314
|
__pyx_t_1 = 0;
|
|
@@ -2316,12 +2325,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_10getFrameElement(struct __pyx
|
|
|
2316
2325
|
return __pyx_r;
|
|
2317
2326
|
}
|
|
2318
2327
|
|
|
2319
|
-
/* "FrameNet/Frame.pyx":
|
|
2328
|
+
/* "FrameNet/Frame.pyx":50
|
|
2320
2329
|
* return self.__frame_elements[index]
|
|
2321
2330
|
*
|
|
2322
2331
|
* cpdef int lexicalUnitSize(self): # <<<<<<<<<<<<<<
|
|
2323
|
-
*
|
|
2324
|
-
*
|
|
2332
|
+
* """
|
|
2333
|
+
* Returns number of lexical units in the current frame
|
|
2325
2334
|
*/
|
|
2326
2335
|
|
|
2327
2336
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
|
|
@@ -2347,7 +2356,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(struct __pyx_obj_8Fra
|
|
|
2347
2356
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
2348
2357
|
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
2349
2358
|
#endif
|
|
2350
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lexicalUnitSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2359
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lexicalUnitSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
2351
2360
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2352
2361
|
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize)) {
|
|
2353
2362
|
__Pyx_INCREF(__pyx_t_1);
|
|
@@ -2363,10 +2372,10 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(struct __pyx_obj_8Fra
|
|
|
2363
2372
|
}
|
|
2364
2373
|
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
|
|
2365
2374
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
2366
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
2375
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
2367
2376
|
__Pyx_GOTREF(__pyx_t_2);
|
|
2368
2377
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
2369
|
-
__pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
2378
|
+
__pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
2370
2379
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
2371
2380
|
__pyx_r = __pyx_t_5;
|
|
2372
2381
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
@@ -2385,9 +2394,9 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(struct __pyx_obj_8Fra
|
|
|
2385
2394
|
#endif
|
|
2386
2395
|
}
|
|
2387
2396
|
|
|
2388
|
-
/* "FrameNet/Frame.pyx":
|
|
2389
|
-
*
|
|
2390
|
-
*
|
|
2397
|
+
/* "FrameNet/Frame.pyx":55
|
|
2398
|
+
* :return: Number of lexical units in the current frame
|
|
2399
|
+
* """
|
|
2391
2400
|
* return len(self.__lexical_units) # <<<<<<<<<<<<<<
|
|
2392
2401
|
*
|
|
2393
2402
|
* cpdef int frameElementSize(self):
|
|
@@ -2396,19 +2405,19 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(struct __pyx_obj_8Fra
|
|
|
2396
2405
|
__Pyx_INCREF(__pyx_t_1);
|
|
2397
2406
|
if (unlikely(__pyx_t_1 == Py_None)) {
|
|
2398
2407
|
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
|
|
2399
|
-
__PYX_ERR(0,
|
|
2408
|
+
__PYX_ERR(0, 55, __pyx_L1_error)
|
|
2400
2409
|
}
|
|
2401
|
-
__pyx_t_6 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0,
|
|
2410
|
+
__pyx_t_6 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 55, __pyx_L1_error)
|
|
2402
2411
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
2403
2412
|
__pyx_r = __pyx_t_6;
|
|
2404
2413
|
goto __pyx_L0;
|
|
2405
2414
|
|
|
2406
|
-
/* "FrameNet/Frame.pyx":
|
|
2415
|
+
/* "FrameNet/Frame.pyx":50
|
|
2407
2416
|
* return self.__frame_elements[index]
|
|
2408
2417
|
*
|
|
2409
2418
|
* cpdef int lexicalUnitSize(self): # <<<<<<<<<<<<<<
|
|
2410
|
-
*
|
|
2411
|
-
*
|
|
2419
|
+
* """
|
|
2420
|
+
* Returns number of lexical units in the current frame
|
|
2412
2421
|
*/
|
|
2413
2422
|
|
|
2414
2423
|
/* function exit code */
|
|
@@ -2426,6 +2435,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(struct __pyx_obj_8Fra
|
|
|
2426
2435
|
|
|
2427
2436
|
/* Python wrapper */
|
|
2428
2437
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
|
|
2438
|
+
static char __pyx_doc_8FrameNet_5Frame_5Frame_12lexicalUnitSize[] = "\n Returns number of lexical units in the current frame\n :return: Number of lexical units in the current frame\n ";
|
|
2429
2439
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
|
|
2430
2440
|
PyObject *__pyx_r = 0;
|
|
2431
2441
|
__Pyx_RefNannyDeclarations
|
|
@@ -2446,7 +2456,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_12lexicalUnitSize(struct __pyx
|
|
|
2446
2456
|
int __pyx_clineno = 0;
|
|
2447
2457
|
__Pyx_RefNannySetupContext("lexicalUnitSize", 0);
|
|
2448
2458
|
__Pyx_XDECREF(__pyx_r);
|
|
2449
|
-
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2459
|
+
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
2450
2460
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2451
2461
|
__pyx_r = __pyx_t_1;
|
|
2452
2462
|
__pyx_t_1 = 0;
|
|
@@ -2463,12 +2473,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_12lexicalUnitSize(struct __pyx
|
|
|
2463
2473
|
return __pyx_r;
|
|
2464
2474
|
}
|
|
2465
2475
|
|
|
2466
|
-
/* "FrameNet/Frame.pyx":
|
|
2476
|
+
/* "FrameNet/Frame.pyx":57
|
|
2467
2477
|
* return len(self.__lexical_units)
|
|
2468
2478
|
*
|
|
2469
2479
|
* cpdef int frameElementSize(self): # <<<<<<<<<<<<<<
|
|
2470
|
-
*
|
|
2471
|
-
*
|
|
2480
|
+
* """
|
|
2481
|
+
* Returns number of frame elements in the current frame
|
|
2472
2482
|
*/
|
|
2473
2483
|
|
|
2474
2484
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
|
|
@@ -2494,7 +2504,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(struct __pyx_obj_8Fr
|
|
|
2494
2504
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
2495
2505
|
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
2496
2506
|
#endif
|
|
2497
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_frameElementSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2507
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_frameElementSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 57, __pyx_L1_error)
|
|
2498
2508
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2499
2509
|
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize)) {
|
|
2500
2510
|
__Pyx_INCREF(__pyx_t_1);
|
|
@@ -2510,10 +2520,10 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(struct __pyx_obj_8Fr
|
|
|
2510
2520
|
}
|
|
2511
2521
|
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
|
|
2512
2522
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
2513
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
2523
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error)
|
|
2514
2524
|
__Pyx_GOTREF(__pyx_t_2);
|
|
2515
2525
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
2516
|
-
__pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
2526
|
+
__pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 57, __pyx_L1_error)
|
|
2517
2527
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
2518
2528
|
__pyx_r = __pyx_t_5;
|
|
2519
2529
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
@@ -2532,9 +2542,9 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(struct __pyx_obj_8Fr
|
|
|
2532
2542
|
#endif
|
|
2533
2543
|
}
|
|
2534
2544
|
|
|
2535
|
-
/* "FrameNet/Frame.pyx":
|
|
2536
|
-
*
|
|
2537
|
-
*
|
|
2545
|
+
/* "FrameNet/Frame.pyx":62
|
|
2546
|
+
* :return: Number of frame elements in the current frame
|
|
2547
|
+
* """
|
|
2538
2548
|
* return len(self.__frame_elements) # <<<<<<<<<<<<<<
|
|
2539
2549
|
*
|
|
2540
2550
|
* cpdef str getName(self):
|
|
@@ -2543,19 +2553,19 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(struct __pyx_obj_8Fr
|
|
|
2543
2553
|
__Pyx_INCREF(__pyx_t_1);
|
|
2544
2554
|
if (unlikely(__pyx_t_1 == Py_None)) {
|
|
2545
2555
|
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
|
|
2546
|
-
__PYX_ERR(0,
|
|
2556
|
+
__PYX_ERR(0, 62, __pyx_L1_error)
|
|
2547
2557
|
}
|
|
2548
|
-
__pyx_t_6 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0,
|
|
2558
|
+
__pyx_t_6 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 62, __pyx_L1_error)
|
|
2549
2559
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
2550
2560
|
__pyx_r = __pyx_t_6;
|
|
2551
2561
|
goto __pyx_L0;
|
|
2552
2562
|
|
|
2553
|
-
/* "FrameNet/Frame.pyx":
|
|
2563
|
+
/* "FrameNet/Frame.pyx":57
|
|
2554
2564
|
* return len(self.__lexical_units)
|
|
2555
2565
|
*
|
|
2556
2566
|
* cpdef int frameElementSize(self): # <<<<<<<<<<<<<<
|
|
2557
|
-
*
|
|
2558
|
-
*
|
|
2567
|
+
* """
|
|
2568
|
+
* Returns number of frame elements in the current frame
|
|
2559
2569
|
*/
|
|
2560
2570
|
|
|
2561
2571
|
/* function exit code */
|
|
@@ -2573,6 +2583,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(struct __pyx_obj_8Fr
|
|
|
2573
2583
|
|
|
2574
2584
|
/* Python wrapper */
|
|
2575
2585
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
|
|
2586
|
+
static char __pyx_doc_8FrameNet_5Frame_5Frame_14frameElementSize[] = "\n Returns number of frame elements in the current frame\n :return: Number of frame elements in the current frame\n ";
|
|
2576
2587
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
|
|
2577
2588
|
PyObject *__pyx_r = 0;
|
|
2578
2589
|
__Pyx_RefNannyDeclarations
|
|
@@ -2593,7 +2604,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_14frameElementSize(struct __py
|
|
|
2593
2604
|
int __pyx_clineno = 0;
|
|
2594
2605
|
__Pyx_RefNannySetupContext("frameElementSize", 0);
|
|
2595
2606
|
__Pyx_XDECREF(__pyx_r);
|
|
2596
|
-
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2607
|
+
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 57, __pyx_L1_error)
|
|
2597
2608
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2598
2609
|
__pyx_r = __pyx_t_1;
|
|
2599
2610
|
__pyx_t_1 = 0;
|
|
@@ -2610,12 +2621,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_14frameElementSize(struct __py
|
|
|
2610
2621
|
return __pyx_r;
|
|
2611
2622
|
}
|
|
2612
2623
|
|
|
2613
|
-
/* "FrameNet/Frame.pyx":
|
|
2624
|
+
/* "FrameNet/Frame.pyx":64
|
|
2614
2625
|
* return len(self.__frame_elements)
|
|
2615
2626
|
*
|
|
2616
2627
|
* cpdef str getName(self): # <<<<<<<<<<<<<<
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2628
|
+
* """
|
|
2629
|
+
* Accessor for the name of the frame
|
|
2619
2630
|
*/
|
|
2620
2631
|
|
|
2621
2632
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_17getName(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
|
|
@@ -2639,7 +2650,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getName(struct __pyx_obj_8Frame
|
|
|
2639
2650
|
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
|
|
2640
2651
|
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
|
|
2641
2652
|
#endif
|
|
2642
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2653
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error)
|
|
2643
2654
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2644
2655
|
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_17getName)) {
|
|
2645
2656
|
__Pyx_XDECREF(__pyx_r);
|
|
@@ -2656,10 +2667,10 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getName(struct __pyx_obj_8Frame
|
|
|
2656
2667
|
}
|
|
2657
2668
|
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
|
|
2658
2669
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
2659
|
-
if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
2670
|
+
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error)
|
|
2660
2671
|
__Pyx_GOTREF(__pyx_t_2);
|
|
2661
2672
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
2662
|
-
if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0,
|
|
2673
|
+
if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 64, __pyx_L1_error)
|
|
2663
2674
|
__pyx_r = ((PyObject*)__pyx_t_2);
|
|
2664
2675
|
__pyx_t_2 = 0;
|
|
2665
2676
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
@@ -2678,9 +2689,9 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getName(struct __pyx_obj_8Frame
|
|
|
2678
2689
|
#endif
|
|
2679
2690
|
}
|
|
2680
2691
|
|
|
2681
|
-
/* "FrameNet/Frame.pyx":
|
|
2682
|
-
*
|
|
2683
|
-
*
|
|
2692
|
+
/* "FrameNet/Frame.pyx":69
|
|
2693
|
+
* :return: Name of the frame
|
|
2694
|
+
* """
|
|
2684
2695
|
* return self.__name # <<<<<<<<<<<<<<
|
|
2685
2696
|
*
|
|
2686
2697
|
* def __repr__(self):
|
|
@@ -2690,12 +2701,12 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getName(struct __pyx_obj_8Frame
|
|
|
2690
2701
|
__pyx_r = __pyx_v_self->__pyx___name;
|
|
2691
2702
|
goto __pyx_L0;
|
|
2692
2703
|
|
|
2693
|
-
/* "FrameNet/Frame.pyx":
|
|
2704
|
+
/* "FrameNet/Frame.pyx":64
|
|
2694
2705
|
* return len(self.__frame_elements)
|
|
2695
2706
|
*
|
|
2696
2707
|
* cpdef str getName(self): # <<<<<<<<<<<<<<
|
|
2697
|
-
*
|
|
2698
|
-
*
|
|
2708
|
+
* """
|
|
2709
|
+
* Accessor for the name of the frame
|
|
2699
2710
|
*/
|
|
2700
2711
|
|
|
2701
2712
|
/* function exit code */
|
|
@@ -2714,6 +2725,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getName(struct __pyx_obj_8Frame
|
|
|
2714
2725
|
|
|
2715
2726
|
/* Python wrapper */
|
|
2716
2727
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_17getName(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
|
|
2728
|
+
static char __pyx_doc_8FrameNet_5Frame_5Frame_16getName[] = "\n Accessor for the name of the frame\n :return: Name of the frame\n ";
|
|
2717
2729
|
static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_17getName(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
|
|
2718
2730
|
PyObject *__pyx_r = 0;
|
|
2719
2731
|
__Pyx_RefNannyDeclarations
|
|
@@ -2734,7 +2746,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_16getName(struct __pyx_obj_8Fr
|
|
|
2734
2746
|
int __pyx_clineno = 0;
|
|
2735
2747
|
__Pyx_RefNannySetupContext("getName", 0);
|
|
2736
2748
|
__Pyx_XDECREF(__pyx_r);
|
|
2737
|
-
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_getName(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2749
|
+
__pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_getName(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error)
|
|
2738
2750
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2739
2751
|
__pyx_r = __pyx_t_1;
|
|
2740
2752
|
__pyx_t_1 = 0;
|
|
@@ -2751,7 +2763,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_16getName(struct __pyx_obj_8Fr
|
|
|
2751
2763
|
return __pyx_r;
|
|
2752
2764
|
}
|
|
2753
2765
|
|
|
2754
|
-
/* "FrameNet/Frame.pyx":
|
|
2766
|
+
/* "FrameNet/Frame.pyx":71
|
|
2755
2767
|
* return self.__name
|
|
2756
2768
|
*
|
|
2757
2769
|
* def __repr__(self): # <<<<<<<<<<<<<<
|
|
@@ -2783,17 +2795,17 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__repr__(struct __pyx_obj_8F
|
|
|
2783
2795
|
int __pyx_clineno = 0;
|
|
2784
2796
|
__Pyx_RefNannySetupContext("__repr__", 0);
|
|
2785
2797
|
|
|
2786
|
-
/* "FrameNet/Frame.pyx":
|
|
2798
|
+
/* "FrameNet/Frame.pyx":72
|
|
2787
2799
|
*
|
|
2788
2800
|
* def __repr__(self):
|
|
2789
2801
|
* return f"{self.__name} {self.__lexical_units} {self.__frame_elements}" # <<<<<<<<<<<<<<
|
|
2790
2802
|
*/
|
|
2791
2803
|
__Pyx_XDECREF(__pyx_r);
|
|
2792
|
-
__pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
2804
|
+
__pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error)
|
|
2793
2805
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2794
2806
|
__pyx_t_2 = 0;
|
|
2795
2807
|
__pyx_t_3 = 127;
|
|
2796
|
-
__pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_v_self->__pyx___name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
2808
|
+
__pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_v_self->__pyx___name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error)
|
|
2797
2809
|
__Pyx_GOTREF(__pyx_t_4);
|
|
2798
2810
|
__pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
|
|
2799
2811
|
__pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
|
|
@@ -2804,7 +2816,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__repr__(struct __pyx_obj_8F
|
|
|
2804
2816
|
__pyx_t_2 += 1;
|
|
2805
2817
|
__Pyx_GIVEREF(__pyx_kp_u_);
|
|
2806
2818
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_kp_u_);
|
|
2807
|
-
__pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_self->__pyx___lexical_units, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
2819
|
+
__pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_self->__pyx___lexical_units, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error)
|
|
2808
2820
|
__Pyx_GOTREF(__pyx_t_4);
|
|
2809
2821
|
__pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
|
|
2810
2822
|
__pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
|
|
@@ -2815,21 +2827,21 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__repr__(struct __pyx_obj_8F
|
|
|
2815
2827
|
__pyx_t_2 += 1;
|
|
2816
2828
|
__Pyx_GIVEREF(__pyx_kp_u_);
|
|
2817
2829
|
PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_kp_u_);
|
|
2818
|
-
__pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_self->__pyx___frame_elements, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
2830
|
+
__pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_self->__pyx___frame_elements, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error)
|
|
2819
2831
|
__Pyx_GOTREF(__pyx_t_4);
|
|
2820
2832
|
__pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
|
|
2821
2833
|
__pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
|
|
2822
2834
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
2823
2835
|
PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_t_4);
|
|
2824
2836
|
__pyx_t_4 = 0;
|
|
2825
|
-
__pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
2837
|
+
__pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error)
|
|
2826
2838
|
__Pyx_GOTREF(__pyx_t_4);
|
|
2827
2839
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
2828
2840
|
__pyx_r = __pyx_t_4;
|
|
2829
2841
|
__pyx_t_4 = 0;
|
|
2830
2842
|
goto __pyx_L0;
|
|
2831
2843
|
|
|
2832
|
-
/* "FrameNet/Frame.pyx":
|
|
2844
|
+
/* "FrameNet/Frame.pyx":71
|
|
2833
2845
|
* return self.__name
|
|
2834
2846
|
*
|
|
2835
2847
|
* def __repr__(self): # <<<<<<<<<<<<<<
|
|
@@ -3644,14 +3656,14 @@ static int __pyx_tp_clear_8FrameNet_5Frame_Frame(PyObject *o) {
|
|
|
3644
3656
|
}
|
|
3645
3657
|
|
|
3646
3658
|
static PyMethodDef __pyx_methods_8FrameNet_5Frame_Frame[] = {
|
|
3647
|
-
{"addLexicalUnit", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit, METH_O,
|
|
3648
|
-
{"addFrameElement", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement, METH_O,
|
|
3649
|
-
{"lexicalUnitExists", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists, METH_O,
|
|
3650
|
-
{"getLexicalUnit", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit, METH_O,
|
|
3651
|
-
{"getFrameElement", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement, METH_O,
|
|
3652
|
-
{"lexicalUnitSize", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize, METH_NOARGS,
|
|
3653
|
-
{"frameElementSize", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize, METH_NOARGS,
|
|
3654
|
-
{"getName", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_17getName, METH_NOARGS,
|
|
3659
|
+
{"addLexicalUnit", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit, METH_O, __pyx_doc_8FrameNet_5Frame_5Frame_2addLexicalUnit},
|
|
3660
|
+
{"addFrameElement", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement, METH_O, __pyx_doc_8FrameNet_5Frame_5Frame_4addFrameElement},
|
|
3661
|
+
{"lexicalUnitExists", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists, METH_O, __pyx_doc_8FrameNet_5Frame_5Frame_6lexicalUnitExists},
|
|
3662
|
+
{"getLexicalUnit", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit, METH_O, __pyx_doc_8FrameNet_5Frame_5Frame_8getLexicalUnit},
|
|
3663
|
+
{"getFrameElement", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement, METH_O, __pyx_doc_8FrameNet_5Frame_5Frame_10getFrameElement},
|
|
3664
|
+
{"lexicalUnitSize", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize, METH_NOARGS, __pyx_doc_8FrameNet_5Frame_5Frame_12lexicalUnitSize},
|
|
3665
|
+
{"frameElementSize", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize, METH_NOARGS, __pyx_doc_8FrameNet_5Frame_5Frame_14frameElementSize},
|
|
3666
|
+
{"getName", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_17getName, METH_NOARGS, __pyx_doc_8FrameNet_5Frame_5Frame_16getName},
|
|
3655
3667
|
{"__reduce_cython__", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_21__reduce_cython__, METH_NOARGS, 0},
|
|
3656
3668
|
{"__setstate_cython__", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_23__setstate_cython__, METH_O, 0},
|
|
3657
3669
|
{0, 0, 0, 0}
|
|
@@ -3899,6 +3911,16 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
3899
3911
|
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_8FrameNet_5Frame_Frame.tp_dictoffset && __pyx_type_8FrameNet_5Frame_Frame.tp_getattro == PyObject_GenericGetAttr)) {
|
|
3900
3912
|
__pyx_type_8FrameNet_5Frame_Frame.tp_getattro = __Pyx_PyObject_GenericGetAttr;
|
|
3901
3913
|
}
|
|
3914
|
+
#if CYTHON_COMPILING_IN_CPYTHON
|
|
3915
|
+
{
|
|
3916
|
+
PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_8FrameNet_5Frame_Frame, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
3917
|
+
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
|
|
3918
|
+
__pyx_wrapperbase_8FrameNet_5Frame_5Frame___init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
|
|
3919
|
+
__pyx_wrapperbase_8FrameNet_5Frame_5Frame___init__.doc = __pyx_doc_8FrameNet_5Frame_5Frame___init__;
|
|
3920
|
+
((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_8FrameNet_5Frame_5Frame___init__;
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
#endif
|
|
3902
3924
|
if (__Pyx_SetVtable(__pyx_type_8FrameNet_5Frame_Frame.tp_dict, __pyx_vtabptr_8FrameNet_5Frame_Frame) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
3903
3925
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Frame, (PyObject *)&__pyx_type_8FrameNet_5Frame_Frame) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
3904
3926
|
if (__Pyx_setup_reduce((PyObject*)&__pyx_type_8FrameNet_5Frame_Frame) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|