NlpToolkit-FrameNet-Cy 1.0.7__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.
Files changed (30) hide show
  1. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/Frame.c +530 -299
  2. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/Frame.pxd +3 -3
  3. NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/Frame.pyx +72 -0
  4. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameElement.c +1274 -881
  5. NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/FrameElement.pxd +12 -0
  6. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameElement.pyx +25 -9
  7. NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/FrameElementList.c +7599 -0
  8. NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/FrameElementList.pxd +11 -0
  9. NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/FrameElementList.pyx +114 -0
  10. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameNet.c +393 -387
  11. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/FrameNet.pxd +1 -1
  12. NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/FrameNet.pyx +64 -0
  13. NlpToolkit-FrameNet-Cy-1.0.9/FrameNet/data/framenet.xml +22005 -0
  14. NlpToolkit-FrameNet-Cy-1.0.9/NlpToolkit_FrameNet_Cy.egg-info/PKG-INFO +122 -0
  15. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/NlpToolkit_FrameNet_Cy.egg-info/SOURCES.txt +3 -0
  16. NlpToolkit-FrameNet-Cy-1.0.9/PKG-INFO +122 -0
  17. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/README.md +6 -1
  18. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/setup.py +1 -1
  19. NlpToolkit-FrameNet-Cy-1.0.7/FrameNet/Frame.pyx +0 -30
  20. NlpToolkit-FrameNet-Cy-1.0.7/FrameNet/FrameElement.pxd +0 -10
  21. NlpToolkit-FrameNet-Cy-1.0.7/FrameNet/FrameNet.pyx +0 -42
  22. NlpToolkit-FrameNet-Cy-1.0.7/FrameNet/data/framenet.xml +0 -5062
  23. NlpToolkit-FrameNet-Cy-1.0.7/NlpToolkit_FrameNet_Cy.egg-info/PKG-INFO +0 -116
  24. NlpToolkit-FrameNet-Cy-1.0.7/PKG-INFO +0 -116
  25. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/__init__.py +0 -0
  26. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/FrameNet/data/__init__.py +0 -0
  27. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/LICENSE +0 -0
  28. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/NlpToolkit_FrameNet_Cy.egg-info/dependency_links.txt +0 -0
  29. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/NlpToolkit_FrameNet_Cy.egg-info/top_level.txt +0 -0
  30. {NlpToolkit-FrameNet-Cy-1.0.7 → NlpToolkit-FrameNet-Cy-1.0.9}/setup.cfg +0 -0
@@ -835,14 +835,14 @@ struct __pyx_obj_8FrameNet_5Frame_Frame;
835
835
  /* "FrameNet/Frame.pxd":1
836
836
  * cdef class Frame: # <<<<<<<<<<<<<<
837
837
  *
838
- * cdef str name
838
+ * cdef str __name
839
839
  */
840
840
  struct __pyx_obj_8FrameNet_5Frame_Frame {
841
841
  PyObject_HEAD
842
842
  struct __pyx_vtabstruct_8FrameNet_5Frame_Frame *__pyx_vtab;
843
- PyObject *name;
844
- PyObject *lexicalUnits;
845
- PyObject *frameElements;
843
+ PyObject *__pyx___name;
844
+ PyObject *__pyx___lexical_units;
845
+ PyObject *__pyx___frame_elements;
846
846
  };
847
847
 
848
848
 
@@ -1121,6 +1121,38 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
1121
1121
  #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
1122
1122
  #endif
1123
1123
 
1124
+ /* PyUnicode_Unicode.proto */
1125
+ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj);
1126
+
1127
+ /* PyObjectFormatSimple.proto */
1128
+ #if CYTHON_COMPILING_IN_PYPY
1129
+ #define __Pyx_PyObject_FormatSimple(s, f) (\
1130
+ likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
1131
+ PyObject_Format(s, f))
1132
+ #elif PY_MAJOR_VERSION < 3
1133
+ #define __Pyx_PyObject_FormatSimple(s, f) (\
1134
+ likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
1135
+ likely(PyString_CheckExact(s)) ? PyUnicode_FromEncodedObject(s, NULL, "strict") :\
1136
+ PyObject_Format(s, f))
1137
+ #elif CYTHON_USE_TYPE_SLOTS
1138
+ #define __Pyx_PyObject_FormatSimple(s, f) (\
1139
+ likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
1140
+ likely(PyLong_CheckExact(s)) ? PyLong_Type.tp_str(s) :\
1141
+ likely(PyFloat_CheckExact(s)) ? PyFloat_Type.tp_str(s) :\
1142
+ PyObject_Format(s, f))
1143
+ #else
1144
+ #define __Pyx_PyObject_FormatSimple(s, f) (\
1145
+ likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
1146
+ PyObject_Format(s, f))
1147
+ #endif
1148
+
1149
+ /* IncludeStringH.proto */
1150
+ #include <string.h>
1151
+
1152
+ /* JoinPyUnicode.proto */
1153
+ static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
1154
+ Py_UCS4 max_char);
1155
+
1124
1156
  /* PyErrExceptionMatches.proto */
1125
1157
  #if CYTHON_FAST_THREAD_STATE
1126
1158
  #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
@@ -1268,7 +1300,9 @@ extern int __pyx_module_is_main_FrameNet__Frame;
1268
1300
  int __pyx_module_is_main_FrameNet__Frame = 0;
1269
1301
 
1270
1302
  /* Implementation of 'FrameNet.Frame' */
1303
+ static const char __pyx_k_[] = " ";
1271
1304
  static const char __pyx_k_new[] = "__new__";
1305
+ static const char __pyx_k_None[] = "None";
1272
1306
  static const char __pyx_k_dict[] = "__dict__";
1273
1307
  static const char __pyx_k_main[] = "__main__";
1274
1308
  static const char __pyx_k_name[] = "name";
@@ -1303,10 +1337,12 @@ static const char __pyx_k_frameElementSize[] = "frameElementSize";
1303
1337
  static const char __pyx_k_lexicalUnitExists[] = "lexicalUnitExists";
1304
1338
  static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
1305
1339
  static const char __pyx_k_pyx_unpickle_Frame[] = "__pyx_unpickle_Frame";
1306
- static const char __pyx_k_Incompatible_checksums_s_vs_0x57[] = "Incompatible checksums (%s vs 0x57c22dd = (frameElements, lexicalUnits, name))";
1340
+ static const char __pyx_k_Incompatible_checksums_s_vs_0x88[] = "Incompatible checksums (%s vs 0x8858aef = (__frame_elements, __lexical_units, __name))";
1341
+ static PyObject *__pyx_kp_u_;
1307
1342
  static PyObject *__pyx_n_s_Frame;
1308
1343
  static PyObject *__pyx_n_s_FrameNet_Frame;
1309
- static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x57;
1344
+ static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x88;
1345
+ static PyObject *__pyx_kp_u_None;
1310
1346
  static PyObject *__pyx_n_s_PickleError;
1311
1347
  static PyObject *__pyx_n_s_addFrameElement;
1312
1348
  static PyObject *__pyx_n_s_addLexicalUnit;
@@ -1349,25 +1385,30 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_10getFrameElement(struct __pyx
1349
1385
  static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_12lexicalUnitSize(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self); /* proto */
1350
1386
  static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_14frameElementSize(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self); /* proto */
1351
1387
  static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_16getName(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self); /* proto */
1352
- static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self); /* proto */
1353
- static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_20__setstate_cython__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
1388
+ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__repr__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self); /* proto */
1389
+ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_20__reduce_cython__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self); /* proto */
1390
+ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_22__setstate_cython__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
1354
1391
  static PyObject *__pyx_pf_8FrameNet_5Frame___pyx_unpickle_Frame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
1355
1392
  static PyObject *__pyx_tp_new_8FrameNet_5Frame_Frame(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
1356
- static PyObject *__pyx_int_92021469;
1357
- static PyObject *__pyx_tuple_;
1358
- static PyObject *__pyx_codeobj__2;
1393
+ static PyObject *__pyx_int_142969583;
1394
+ static PyObject *__pyx_tuple__2;
1395
+ static PyObject *__pyx_codeobj__3;
1359
1396
  /* Late includes */
1360
1397
 
1361
1398
  /* "FrameNet/Frame.pyx":3
1362
1399
  * cdef class Frame:
1363
1400
  *
1364
1401
  * def __init__(self, name: str): # <<<<<<<<<<<<<<
1365
- * self.lexicalUnits = []
1366
- * self.frameElements = []
1402
+ * """
1403
+ * Constructor of Frame class which takes inputStream as input and reads the frame
1367
1404
  */
1368
1405
 
1369
1406
  /* Python wrapper */
1370
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
1371
1412
  static int __pyx_pw_8FrameNet_5Frame_5Frame_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1372
1413
  PyObject *__pyx_v_name = 0;
1373
1414
  int __pyx_lineno = 0;
@@ -1433,55 +1474,55 @@ static int __pyx_pf_8FrameNet_5Frame_5Frame___init__(struct __pyx_obj_8FrameNet_
1433
1474
  int __pyx_clineno = 0;
1434
1475
  __Pyx_RefNannySetupContext("__init__", 0);
1435
1476
 
1436
- /* "FrameNet/Frame.pyx":4
1437
- *
1438
- * def __init__(self, name: str):
1439
- * self.lexicalUnits = [] # <<<<<<<<<<<<<<
1440
- * self.frameElements = []
1441
- * self.name = name
1477
+ /* "FrameNet/Frame.pyx":8
1478
+ * :param name: Name of the frame
1479
+ * """
1480
+ * self.__lexical_units = [] # <<<<<<<<<<<<<<
1481
+ * self.__frame_elements = []
1482
+ * self.__name = name
1442
1483
  */
1443
- __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
1484
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
1444
1485
  __Pyx_GOTREF(__pyx_t_1);
1445
1486
  __Pyx_GIVEREF(__pyx_t_1);
1446
- __Pyx_GOTREF(__pyx_v_self->lexicalUnits);
1447
- __Pyx_DECREF(__pyx_v_self->lexicalUnits);
1448
- __pyx_v_self->lexicalUnits = ((PyObject*)__pyx_t_1);
1487
+ __Pyx_GOTREF(__pyx_v_self->__pyx___lexical_units);
1488
+ __Pyx_DECREF(__pyx_v_self->__pyx___lexical_units);
1489
+ __pyx_v_self->__pyx___lexical_units = ((PyObject*)__pyx_t_1);
1449
1490
  __pyx_t_1 = 0;
1450
1491
 
1451
- /* "FrameNet/Frame.pyx":5
1452
- * def __init__(self, name: str):
1453
- * self.lexicalUnits = []
1454
- * self.frameElements = [] # <<<<<<<<<<<<<<
1455
- * self.name = name
1492
+ /* "FrameNet/Frame.pyx":9
1493
+ * """
1494
+ * self.__lexical_units = []
1495
+ * self.__frame_elements = [] # <<<<<<<<<<<<<<
1496
+ * self.__name = name
1456
1497
  *
1457
1498
  */
1458
- __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5, __pyx_L1_error)
1499
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error)
1459
1500
  __Pyx_GOTREF(__pyx_t_1);
1460
1501
  __Pyx_GIVEREF(__pyx_t_1);
1461
- __Pyx_GOTREF(__pyx_v_self->frameElements);
1462
- __Pyx_DECREF(__pyx_v_self->frameElements);
1463
- __pyx_v_self->frameElements = ((PyObject*)__pyx_t_1);
1502
+ __Pyx_GOTREF(__pyx_v_self->__pyx___frame_elements);
1503
+ __Pyx_DECREF(__pyx_v_self->__pyx___frame_elements);
1504
+ __pyx_v_self->__pyx___frame_elements = ((PyObject*)__pyx_t_1);
1464
1505
  __pyx_t_1 = 0;
1465
1506
 
1466
- /* "FrameNet/Frame.pyx":6
1467
- * self.lexicalUnits = []
1468
- * self.frameElements = []
1469
- * self.name = name # <<<<<<<<<<<<<<
1507
+ /* "FrameNet/Frame.pyx":10
1508
+ * self.__lexical_units = []
1509
+ * self.__frame_elements = []
1510
+ * self.__name = name # <<<<<<<<<<<<<<
1470
1511
  *
1471
1512
  * cpdef addLexicalUnit(self, str lexicalUnit):
1472
1513
  */
1473
1514
  __Pyx_INCREF(__pyx_v_name);
1474
1515
  __Pyx_GIVEREF(__pyx_v_name);
1475
- __Pyx_GOTREF(__pyx_v_self->name);
1476
- __Pyx_DECREF(__pyx_v_self->name);
1477
- __pyx_v_self->name = __pyx_v_name;
1516
+ __Pyx_GOTREF(__pyx_v_self->__pyx___name);
1517
+ __Pyx_DECREF(__pyx_v_self->__pyx___name);
1518
+ __pyx_v_self->__pyx___name = __pyx_v_name;
1478
1519
 
1479
1520
  /* "FrameNet/Frame.pyx":3
1480
1521
  * cdef class Frame:
1481
1522
  *
1482
1523
  * def __init__(self, name: str): # <<<<<<<<<<<<<<
1483
- * self.lexicalUnits = []
1484
- * self.frameElements = []
1524
+ * """
1525
+ * Constructor of Frame class which takes inputStream as input and reads the frame
1485
1526
  */
1486
1527
 
1487
1528
  /* function exit code */
@@ -1496,12 +1537,12 @@ static int __pyx_pf_8FrameNet_5Frame_5Frame___init__(struct __pyx_obj_8FrameNet_
1496
1537
  return __pyx_r;
1497
1538
  }
1498
1539
 
1499
- /* "FrameNet/Frame.pyx":8
1500
- * self.name = name
1540
+ /* "FrameNet/Frame.pyx":12
1541
+ * self.__name = name
1501
1542
  *
1502
1543
  * cpdef addLexicalUnit(self, str lexicalUnit): # <<<<<<<<<<<<<<
1503
- * self.lexicalUnits.append(lexicalUnit)
1504
- *
1544
+ * """
1545
+ * Adds a new lexical unit to the current frame
1505
1546
  */
1506
1547
 
1507
1548
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_v_lexicalUnit); /*proto*/
@@ -1526,7 +1567,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(struct __pyx_obj
1526
1567
  if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
1527
1568
  PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
1528
1569
  #endif
1529
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_addLexicalUnit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
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)
1530
1571
  __Pyx_GOTREF(__pyx_t_1);
1531
1572
  if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit)) {
1532
1573
  __Pyx_XDECREF(__pyx_r);
@@ -1543,7 +1584,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(struct __pyx_obj
1543
1584
  }
1544
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);
1545
1586
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
1546
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error)
1587
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error)
1547
1588
  __Pyx_GOTREF(__pyx_t_2);
1548
1589
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1549
1590
  __pyx_r = __pyx_t_2;
@@ -1564,25 +1605,25 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(struct __pyx_obj
1564
1605
  #endif
1565
1606
  }
1566
1607
 
1567
- /* "FrameNet/Frame.pyx":9
1568
- *
1569
- * cpdef addLexicalUnit(self, str lexicalUnit):
1570
- * self.lexicalUnits.append(lexicalUnit) # <<<<<<<<<<<<<<
1608
+ /* "FrameNet/Frame.pyx":17
1609
+ * :param lexicalUnit: lexicalUnit Lexical unit to be added
1610
+ * """
1611
+ * self.__lexical_units.append(lexicalUnit) # <<<<<<<<<<<<<<
1571
1612
  *
1572
1613
  * cpdef addFrameElement(self, str frameElement):
1573
1614
  */
1574
- if (unlikely(__pyx_v_self->lexicalUnits == Py_None)) {
1615
+ if (unlikely(__pyx_v_self->__pyx___lexical_units == Py_None)) {
1575
1616
  PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
1576
- __PYX_ERR(0, 9, __pyx_L1_error)
1617
+ __PYX_ERR(0, 17, __pyx_L1_error)
1577
1618
  }
1578
- __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_self->lexicalUnits, __pyx_v_lexicalUnit); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 9, __pyx_L1_error)
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)
1579
1620
 
1580
- /* "FrameNet/Frame.pyx":8
1581
- * self.name = name
1621
+ /* "FrameNet/Frame.pyx":12
1622
+ * self.__name = name
1582
1623
  *
1583
1624
  * cpdef addLexicalUnit(self, str lexicalUnit): # <<<<<<<<<<<<<<
1584
- * self.lexicalUnits.append(lexicalUnit)
1585
- *
1625
+ * """
1626
+ * Adds a new lexical unit to the current frame
1586
1627
  */
1587
1628
 
1588
1629
  /* function exit code */
@@ -1603,6 +1644,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(struct __pyx_obj
1603
1644
 
1604
1645
  /* Python wrapper */
1605
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 ";
1606
1648
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_v_lexicalUnit) {
1607
1649
  int __pyx_lineno = 0;
1608
1650
  const char *__pyx_filename = NULL;
@@ -1610,7 +1652,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit(PyObject *__py
1610
1652
  PyObject *__pyx_r = 0;
1611
1653
  __Pyx_RefNannyDeclarations
1612
1654
  __Pyx_RefNannySetupContext("addLexicalUnit (wrapper)", 0);
1613
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lexicalUnit), (&PyUnicode_Type), 1, "lexicalUnit", 1))) __PYX_ERR(0, 8, __pyx_L1_error)
1655
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lexicalUnit), (&PyUnicode_Type), 1, "lexicalUnit", 1))) __PYX_ERR(0, 12, __pyx_L1_error)
1614
1656
  __pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_2addLexicalUnit(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self), ((PyObject*)__pyx_v_lexicalUnit));
1615
1657
 
1616
1658
  /* function exit code */
@@ -1631,7 +1673,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_2addLexicalUnit(struct __pyx_o
1631
1673
  int __pyx_clineno = 0;
1632
1674
  __Pyx_RefNannySetupContext("addLexicalUnit", 0);
1633
1675
  __Pyx_XDECREF(__pyx_r);
1634
- __pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_addLexicalUnit(__pyx_v_self, __pyx_v_lexicalUnit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
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)
1635
1677
  __Pyx_GOTREF(__pyx_t_1);
1636
1678
  __pyx_r = __pyx_t_1;
1637
1679
  __pyx_t_1 = 0;
@@ -1648,12 +1690,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_2addLexicalUnit(struct __pyx_o
1648
1690
  return __pyx_r;
1649
1691
  }
1650
1692
 
1651
- /* "FrameNet/Frame.pyx":11
1652
- * self.lexicalUnits.append(lexicalUnit)
1693
+ /* "FrameNet/Frame.pyx":19
1694
+ * self.__lexical_units.append(lexicalUnit)
1653
1695
  *
1654
1696
  * cpdef addFrameElement(self, str frameElement): # <<<<<<<<<<<<<<
1655
- * self.frameElements.append(frameElement)
1656
- *
1697
+ * """
1698
+ * Adds a new frame element to the current frame
1657
1699
  */
1658
1700
 
1659
1701
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_v_frameElement); /*proto*/
@@ -1678,7 +1720,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(struct __pyx_ob
1678
1720
  if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
1679
1721
  PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
1680
1722
  #endif
1681
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_addFrameElement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error)
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)
1682
1724
  __Pyx_GOTREF(__pyx_t_1);
1683
1725
  if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement)) {
1684
1726
  __Pyx_XDECREF(__pyx_r);
@@ -1695,7 +1737,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(struct __pyx_ob
1695
1737
  }
1696
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);
1697
1739
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
1698
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error)
1740
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error)
1699
1741
  __Pyx_GOTREF(__pyx_t_2);
1700
1742
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1701
1743
  __pyx_r = __pyx_t_2;
@@ -1716,25 +1758,25 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(struct __pyx_ob
1716
1758
  #endif
1717
1759
  }
1718
1760
 
1719
- /* "FrameNet/Frame.pyx":12
1720
- *
1721
- * cpdef addFrameElement(self, str frameElement):
1722
- * self.frameElements.append(frameElement) # <<<<<<<<<<<<<<
1761
+ /* "FrameNet/Frame.pyx":24
1762
+ * :param frameElement: Frame element to be added
1763
+ * """
1764
+ * self.__frame_elements.append(frameElement) # <<<<<<<<<<<<<<
1723
1765
  *
1724
1766
  * cpdef bint lexicalUnitExists(self, str synSetId):
1725
1767
  */
1726
- if (unlikely(__pyx_v_self->frameElements == Py_None)) {
1768
+ if (unlikely(__pyx_v_self->__pyx___frame_elements == Py_None)) {
1727
1769
  PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
1728
- __PYX_ERR(0, 12, __pyx_L1_error)
1770
+ __PYX_ERR(0, 24, __pyx_L1_error)
1729
1771
  }
1730
- __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_self->frameElements, __pyx_v_frameElement); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 12, __pyx_L1_error)
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)
1731
1773
 
1732
- /* "FrameNet/Frame.pyx":11
1733
- * self.lexicalUnits.append(lexicalUnit)
1774
+ /* "FrameNet/Frame.pyx":19
1775
+ * self.__lexical_units.append(lexicalUnit)
1734
1776
  *
1735
1777
  * cpdef addFrameElement(self, str frameElement): # <<<<<<<<<<<<<<
1736
- * self.frameElements.append(frameElement)
1737
- *
1778
+ * """
1779
+ * Adds a new frame element to the current frame
1738
1780
  */
1739
1781
 
1740
1782
  /* function exit code */
@@ -1755,6 +1797,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(struct __pyx_ob
1755
1797
 
1756
1798
  /* Python wrapper */
1757
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 ";
1758
1801
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_v_frameElement) {
1759
1802
  int __pyx_lineno = 0;
1760
1803
  const char *__pyx_filename = NULL;
@@ -1762,7 +1805,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement(PyObject *__p
1762
1805
  PyObject *__pyx_r = 0;
1763
1806
  __Pyx_RefNannyDeclarations
1764
1807
  __Pyx_RefNannySetupContext("addFrameElement (wrapper)", 0);
1765
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_frameElement), (&PyUnicode_Type), 1, "frameElement", 1))) __PYX_ERR(0, 11, __pyx_L1_error)
1808
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_frameElement), (&PyUnicode_Type), 1, "frameElement", 1))) __PYX_ERR(0, 19, __pyx_L1_error)
1766
1809
  __pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_4addFrameElement(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self), ((PyObject*)__pyx_v_frameElement));
1767
1810
 
1768
1811
  /* function exit code */
@@ -1783,7 +1826,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_4addFrameElement(struct __pyx_
1783
1826
  int __pyx_clineno = 0;
1784
1827
  __Pyx_RefNannySetupContext("addFrameElement", 0);
1785
1828
  __Pyx_XDECREF(__pyx_r);
1786
- __pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_addFrameElement(__pyx_v_self, __pyx_v_frameElement, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error)
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)
1787
1830
  __Pyx_GOTREF(__pyx_t_1);
1788
1831
  __pyx_r = __pyx_t_1;
1789
1832
  __pyx_t_1 = 0;
@@ -1800,12 +1843,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_4addFrameElement(struct __pyx_
1800
1843
  return __pyx_r;
1801
1844
  }
1802
1845
 
1803
- /* "FrameNet/Frame.pyx":14
1804
- * self.frameElements.append(frameElement)
1846
+ /* "FrameNet/Frame.pyx":26
1847
+ * self.__frame_elements.append(frameElement)
1805
1848
  *
1806
1849
  * cpdef bint lexicalUnitExists(self, str synSetId): # <<<<<<<<<<<<<<
1807
- * return synSetId in self.lexicalUnits
1808
- *
1850
+ * """
1851
+ * Checks if the given lexical unit exists in the current frame
1809
1852
  */
1810
1853
 
1811
1854
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists(PyObject *__pyx_v_self, PyObject *__pyx_v_synSetId); /*proto*/
@@ -1830,7 +1873,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(struct __pyx_obj_8F
1830
1873
  if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
1831
1874
  PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
1832
1875
  #endif
1833
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lexicalUnitExists); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error)
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)
1834
1877
  __Pyx_GOTREF(__pyx_t_1);
1835
1878
  if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists)) {
1836
1879
  __Pyx_INCREF(__pyx_t_1);
@@ -1846,10 +1889,10 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(struct __pyx_obj_8F
1846
1889
  }
1847
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);
1848
1891
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
1849
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error)
1892
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
1850
1893
  __Pyx_GOTREF(__pyx_t_2);
1851
1894
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1852
- __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14, __pyx_L1_error)
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)
1853
1896
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1854
1897
  __pyx_r = __pyx_t_5;
1855
1898
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
@@ -1868,23 +1911,23 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(struct __pyx_obj_8F
1868
1911
  #endif
1869
1912
  }
1870
1913
 
1871
- /* "FrameNet/Frame.pyx":15
1872
- *
1873
- * cpdef bint lexicalUnitExists(self, str synSetId):
1874
- * return synSetId in self.lexicalUnits # <<<<<<<<<<<<<<
1914
+ /* "FrameNet/Frame.pyx":32
1915
+ * :return: True if the lexical unit exists, false otherwise.
1916
+ * """
1917
+ * return synSetId in self.__lexical_units # <<<<<<<<<<<<<<
1875
1918
  *
1876
1919
  * cpdef str getLexicalUnit(self, int index):
1877
1920
  */
1878
- __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_v_synSetId, __pyx_v_self->lexicalUnits, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 15, __pyx_L1_error)
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)
1879
1922
  __pyx_r = __pyx_t_5;
1880
1923
  goto __pyx_L0;
1881
1924
 
1882
- /* "FrameNet/Frame.pyx":14
1883
- * self.frameElements.append(frameElement)
1925
+ /* "FrameNet/Frame.pyx":26
1926
+ * self.__frame_elements.append(frameElement)
1884
1927
  *
1885
1928
  * cpdef bint lexicalUnitExists(self, str synSetId): # <<<<<<<<<<<<<<
1886
- * return synSetId in self.lexicalUnits
1887
- *
1929
+ * """
1930
+ * Checks if the given lexical unit exists in the current frame
1888
1931
  */
1889
1932
 
1890
1933
  /* function exit code */
@@ -1902,6 +1945,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitExists(struct __pyx_obj_8F
1902
1945
 
1903
1946
  /* Python wrapper */
1904
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 ";
1905
1949
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists(PyObject *__pyx_v_self, PyObject *__pyx_v_synSetId) {
1906
1950
  int __pyx_lineno = 0;
1907
1951
  const char *__pyx_filename = NULL;
@@ -1909,7 +1953,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists(PyObject *_
1909
1953
  PyObject *__pyx_r = 0;
1910
1954
  __Pyx_RefNannyDeclarations
1911
1955
  __Pyx_RefNannySetupContext("lexicalUnitExists (wrapper)", 0);
1912
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_synSetId), (&PyUnicode_Type), 1, "synSetId", 1))) __PYX_ERR(0, 14, __pyx_L1_error)
1956
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_synSetId), (&PyUnicode_Type), 1, "synSetId", 1))) __PYX_ERR(0, 26, __pyx_L1_error)
1913
1957
  __pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_6lexicalUnitExists(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self), ((PyObject*)__pyx_v_synSetId));
1914
1958
 
1915
1959
  /* function exit code */
@@ -1930,7 +1974,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_6lexicalUnitExists(struct __py
1930
1974
  int __pyx_clineno = 0;
1931
1975
  __Pyx_RefNannySetupContext("lexicalUnitExists", 0);
1932
1976
  __Pyx_XDECREF(__pyx_r);
1933
- __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, 14, __pyx_L1_error)
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)
1934
1978
  __Pyx_GOTREF(__pyx_t_1);
1935
1979
  __pyx_r = __pyx_t_1;
1936
1980
  __pyx_t_1 = 0;
@@ -1947,12 +1991,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_6lexicalUnitExists(struct __py
1947
1991
  return __pyx_r;
1948
1992
  }
1949
1993
 
1950
- /* "FrameNet/Frame.pyx":17
1951
- * return synSetId in self.lexicalUnits
1994
+ /* "FrameNet/Frame.pyx":34
1995
+ * return synSetId in self.__lexical_units
1952
1996
  *
1953
1997
  * cpdef str getLexicalUnit(self, int index): # <<<<<<<<<<<<<<
1954
- * return self.lexicalUnits[index]
1955
- *
1998
+ * """
1999
+ * Accessor for a given index in the lexicalUnit array.
1956
2000
  */
1957
2001
 
1958
2002
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_arg_index); /*proto*/
@@ -1977,11 +2021,11 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(struct __pyx_obj
1977
2021
  if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
1978
2022
  PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
1979
2023
  #endif
1980
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getLexicalUnit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error)
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)
1981
2025
  __Pyx_GOTREF(__pyx_t_1);
1982
2026
  if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit)) {
1983
2027
  __Pyx_XDECREF(__pyx_r);
1984
- __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17, __pyx_L1_error)
2028
+ __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34, __pyx_L1_error)
1985
2029
  __Pyx_GOTREF(__pyx_t_3);
1986
2030
  __Pyx_INCREF(__pyx_t_1);
1987
2031
  __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
@@ -1997,10 +2041,10 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(struct __pyx_obj
1997
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);
1998
2042
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
1999
2043
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2000
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error)
2044
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error)
2001
2045
  __Pyx_GOTREF(__pyx_t_2);
2002
2046
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
2003
- 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, 17, __pyx_L1_error)
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)
2004
2048
  __pyx_r = ((PyObject*)__pyx_t_2);
2005
2049
  __pyx_t_2 = 0;
2006
2050
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
@@ -2019,31 +2063,31 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(struct __pyx_obj
2019
2063
  #endif
2020
2064
  }
2021
2065
 
2022
- /* "FrameNet/Frame.pyx":18
2023
- *
2024
- * cpdef str getLexicalUnit(self, int index):
2025
- * return self.lexicalUnits[index] # <<<<<<<<<<<<<<
2066
+ /* "FrameNet/Frame.pyx":40
2067
+ * :return: The lexical unit at position index in the lexicalUnit array
2068
+ * """
2069
+ * return self.__lexical_units[index] # <<<<<<<<<<<<<<
2026
2070
  *
2027
2071
  * cpdef str getFrameElement(self, int index):
2028
2072
  */
2029
2073
  __Pyx_XDECREF(__pyx_r);
2030
- if (unlikely(__pyx_v_self->lexicalUnits == Py_None)) {
2074
+ if (unlikely(__pyx_v_self->__pyx___lexical_units == Py_None)) {
2031
2075
  PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
2032
- __PYX_ERR(0, 18, __pyx_L1_error)
2076
+ __PYX_ERR(0, 40, __pyx_L1_error)
2033
2077
  }
2034
- __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->lexicalUnits, __pyx_v_index, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error)
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)
2035
2079
  __Pyx_GOTREF(__pyx_t_1);
2036
- 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, 18, __pyx_L1_error)
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)
2037
2081
  __pyx_r = ((PyObject*)__pyx_t_1);
2038
2082
  __pyx_t_1 = 0;
2039
2083
  goto __pyx_L0;
2040
2084
 
2041
- /* "FrameNet/Frame.pyx":17
2042
- * return synSetId in self.lexicalUnits
2085
+ /* "FrameNet/Frame.pyx":34
2086
+ * return synSetId in self.__lexical_units
2043
2087
  *
2044
2088
  * cpdef str getLexicalUnit(self, int index): # <<<<<<<<<<<<<<
2045
- * return self.lexicalUnits[index]
2046
- *
2089
+ * """
2090
+ * Accessor for a given index in the lexicalUnit array.
2047
2091
  */
2048
2092
 
2049
2093
  /* function exit code */
@@ -2063,6 +2107,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(struct __pyx_obj
2063
2107
 
2064
2108
  /* Python wrapper */
2065
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 ";
2066
2111
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit(PyObject *__pyx_v_self, PyObject *__pyx_arg_index) {
2067
2112
  int __pyx_v_index;
2068
2113
  int __pyx_lineno = 0;
@@ -2072,7 +2117,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit(PyObject *__py
2072
2117
  __Pyx_RefNannyDeclarations
2073
2118
  __Pyx_RefNannySetupContext("getLexicalUnit (wrapper)", 0);
2074
2119
  assert(__pyx_arg_index); {
2075
- __pyx_v_index = __Pyx_PyInt_As_int(__pyx_arg_index); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17, __pyx_L3_error)
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)
2076
2121
  }
2077
2122
  goto __pyx_L4_argument_unpacking_done;
2078
2123
  __pyx_L3_error:;
@@ -2096,7 +2141,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_8getLexicalUnit(struct __pyx_o
2096
2141
  int __pyx_clineno = 0;
2097
2142
  __Pyx_RefNannySetupContext("getLexicalUnit", 0);
2098
2143
  __Pyx_XDECREF(__pyx_r);
2099
- __pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_getLexicalUnit(__pyx_v_self, __pyx_v_index, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error)
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)
2100
2145
  __Pyx_GOTREF(__pyx_t_1);
2101
2146
  __pyx_r = __pyx_t_1;
2102
2147
  __pyx_t_1 = 0;
@@ -2113,12 +2158,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_8getLexicalUnit(struct __pyx_o
2113
2158
  return __pyx_r;
2114
2159
  }
2115
2160
 
2116
- /* "FrameNet/Frame.pyx":20
2117
- * return self.lexicalUnits[index]
2161
+ /* "FrameNet/Frame.pyx":42
2162
+ * return self.__lexical_units[index]
2118
2163
  *
2119
2164
  * cpdef str getFrameElement(self, int index): # <<<<<<<<<<<<<<
2120
- * return self.frameElements[index]
2121
- *
2165
+ * """
2166
+ * Accessor for a given index in the frameElements array.
2122
2167
  */
2123
2168
 
2124
2169
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_arg_index); /*proto*/
@@ -2143,11 +2188,11 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(struct __pyx_ob
2143
2188
  if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
2144
2189
  PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
2145
2190
  #endif
2146
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getFrameElement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error)
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)
2147
2192
  __Pyx_GOTREF(__pyx_t_1);
2148
2193
  if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement)) {
2149
2194
  __Pyx_XDECREF(__pyx_r);
2150
- __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20, __pyx_L1_error)
2195
+ __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 42, __pyx_L1_error)
2151
2196
  __Pyx_GOTREF(__pyx_t_3);
2152
2197
  __Pyx_INCREF(__pyx_t_1);
2153
2198
  __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL;
@@ -2163,10 +2208,10 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(struct __pyx_ob
2163
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);
2164
2209
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
2165
2210
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2166
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error)
2211
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error)
2167
2212
  __Pyx_GOTREF(__pyx_t_2);
2168
2213
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
2169
- 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, 20, __pyx_L1_error)
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)
2170
2215
  __pyx_r = ((PyObject*)__pyx_t_2);
2171
2216
  __pyx_t_2 = 0;
2172
2217
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
@@ -2185,31 +2230,31 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(struct __pyx_ob
2185
2230
  #endif
2186
2231
  }
2187
2232
 
2188
- /* "FrameNet/Frame.pyx":21
2189
- *
2190
- * cpdef str getFrameElement(self, int index):
2191
- * return self.frameElements[index] # <<<<<<<<<<<<<<
2233
+ /* "FrameNet/Frame.pyx":48
2234
+ * :return: The frame element at position index in the frameElements array
2235
+ * """
2236
+ * return self.__frame_elements[index] # <<<<<<<<<<<<<<
2192
2237
  *
2193
2238
  * cpdef int lexicalUnitSize(self):
2194
2239
  */
2195
2240
  __Pyx_XDECREF(__pyx_r);
2196
- if (unlikely(__pyx_v_self->frameElements == Py_None)) {
2241
+ if (unlikely(__pyx_v_self->__pyx___frame_elements == Py_None)) {
2197
2242
  PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
2198
- __PYX_ERR(0, 21, __pyx_L1_error)
2243
+ __PYX_ERR(0, 48, __pyx_L1_error)
2199
2244
  }
2200
- __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->frameElements, __pyx_v_index, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error)
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)
2201
2246
  __Pyx_GOTREF(__pyx_t_1);
2202
- 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, 21, __pyx_L1_error)
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)
2203
2248
  __pyx_r = ((PyObject*)__pyx_t_1);
2204
2249
  __pyx_t_1 = 0;
2205
2250
  goto __pyx_L0;
2206
2251
 
2207
- /* "FrameNet/Frame.pyx":20
2208
- * return self.lexicalUnits[index]
2252
+ /* "FrameNet/Frame.pyx":42
2253
+ * return self.__lexical_units[index]
2209
2254
  *
2210
2255
  * cpdef str getFrameElement(self, int index): # <<<<<<<<<<<<<<
2211
- * return self.frameElements[index]
2212
- *
2256
+ * """
2257
+ * Accessor for a given index in the frameElements array.
2213
2258
  */
2214
2259
 
2215
2260
  /* function exit code */
@@ -2229,6 +2274,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(struct __pyx_ob
2229
2274
 
2230
2275
  /* Python wrapper */
2231
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 ";
2232
2278
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement(PyObject *__pyx_v_self, PyObject *__pyx_arg_index) {
2233
2279
  int __pyx_v_index;
2234
2280
  int __pyx_lineno = 0;
@@ -2238,7 +2284,7 @@ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement(PyObject *__
2238
2284
  __Pyx_RefNannyDeclarations
2239
2285
  __Pyx_RefNannySetupContext("getFrameElement (wrapper)", 0);
2240
2286
  assert(__pyx_arg_index); {
2241
- __pyx_v_index = __Pyx_PyInt_As_int(__pyx_arg_index); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20, __pyx_L3_error)
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)
2242
2288
  }
2243
2289
  goto __pyx_L4_argument_unpacking_done;
2244
2290
  __pyx_L3_error:;
@@ -2262,7 +2308,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_10getFrameElement(struct __pyx
2262
2308
  int __pyx_clineno = 0;
2263
2309
  __Pyx_RefNannySetupContext("getFrameElement", 0);
2264
2310
  __Pyx_XDECREF(__pyx_r);
2265
- __pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_getFrameElement(__pyx_v_self, __pyx_v_index, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error)
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)
2266
2312
  __Pyx_GOTREF(__pyx_t_1);
2267
2313
  __pyx_r = __pyx_t_1;
2268
2314
  __pyx_t_1 = 0;
@@ -2279,12 +2325,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_10getFrameElement(struct __pyx
2279
2325
  return __pyx_r;
2280
2326
  }
2281
2327
 
2282
- /* "FrameNet/Frame.pyx":23
2283
- * return self.frameElements[index]
2328
+ /* "FrameNet/Frame.pyx":50
2329
+ * return self.__frame_elements[index]
2284
2330
  *
2285
2331
  * cpdef int lexicalUnitSize(self): # <<<<<<<<<<<<<<
2286
- * return len(self.lexicalUnits)
2287
- *
2332
+ * """
2333
+ * Returns number of lexical units in the current frame
2288
2334
  */
2289
2335
 
2290
2336
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
@@ -2310,7 +2356,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(struct __pyx_obj_8Fra
2310
2356
  if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
2311
2357
  PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
2312
2358
  #endif
2313
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lexicalUnitSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error)
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)
2314
2360
  __Pyx_GOTREF(__pyx_t_1);
2315
2361
  if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize)) {
2316
2362
  __Pyx_INCREF(__pyx_t_1);
@@ -2326,10 +2372,10 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(struct __pyx_obj_8Fra
2326
2372
  }
2327
2373
  __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
2328
2374
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
2329
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error)
2375
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error)
2330
2376
  __Pyx_GOTREF(__pyx_t_2);
2331
2377
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2332
- __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 23, __pyx_L1_error)
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)
2333
2379
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2334
2380
  __pyx_r = __pyx_t_5;
2335
2381
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
@@ -2348,30 +2394,30 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(struct __pyx_obj_8Fra
2348
2394
  #endif
2349
2395
  }
2350
2396
 
2351
- /* "FrameNet/Frame.pyx":24
2352
- *
2353
- * cpdef int lexicalUnitSize(self):
2354
- * return len(self.lexicalUnits) # <<<<<<<<<<<<<<
2397
+ /* "FrameNet/Frame.pyx":55
2398
+ * :return: Number of lexical units in the current frame
2399
+ * """
2400
+ * return len(self.__lexical_units) # <<<<<<<<<<<<<<
2355
2401
  *
2356
2402
  * cpdef int frameElementSize(self):
2357
2403
  */
2358
- __pyx_t_1 = __pyx_v_self->lexicalUnits;
2404
+ __pyx_t_1 = __pyx_v_self->__pyx___lexical_units;
2359
2405
  __Pyx_INCREF(__pyx_t_1);
2360
2406
  if (unlikely(__pyx_t_1 == Py_None)) {
2361
2407
  PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
2362
- __PYX_ERR(0, 24, __pyx_L1_error)
2408
+ __PYX_ERR(0, 55, __pyx_L1_error)
2363
2409
  }
2364
- __pyx_t_6 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24, __pyx_L1_error)
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)
2365
2411
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2366
2412
  __pyx_r = __pyx_t_6;
2367
2413
  goto __pyx_L0;
2368
2414
 
2369
- /* "FrameNet/Frame.pyx":23
2370
- * return self.frameElements[index]
2415
+ /* "FrameNet/Frame.pyx":50
2416
+ * return self.__frame_elements[index]
2371
2417
  *
2372
2418
  * cpdef int lexicalUnitSize(self): # <<<<<<<<<<<<<<
2373
- * return len(self.lexicalUnits)
2374
- *
2419
+ * """
2420
+ * Returns number of lexical units in the current frame
2375
2421
  */
2376
2422
 
2377
2423
  /* function exit code */
@@ -2389,6 +2435,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_lexicalUnitSize(struct __pyx_obj_8Fra
2389
2435
 
2390
2436
  /* Python wrapper */
2391
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 ";
2392
2439
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
2393
2440
  PyObject *__pyx_r = 0;
2394
2441
  __Pyx_RefNannyDeclarations
@@ -2409,7 +2456,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_12lexicalUnitSize(struct __pyx
2409
2456
  int __pyx_clineno = 0;
2410
2457
  __Pyx_RefNannySetupContext("lexicalUnitSize", 0);
2411
2458
  __Pyx_XDECREF(__pyx_r);
2412
- __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, 23, __pyx_L1_error)
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)
2413
2460
  __Pyx_GOTREF(__pyx_t_1);
2414
2461
  __pyx_r = __pyx_t_1;
2415
2462
  __pyx_t_1 = 0;
@@ -2426,12 +2473,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_12lexicalUnitSize(struct __pyx
2426
2473
  return __pyx_r;
2427
2474
  }
2428
2475
 
2429
- /* "FrameNet/Frame.pyx":26
2430
- * return len(self.lexicalUnits)
2476
+ /* "FrameNet/Frame.pyx":57
2477
+ * return len(self.__lexical_units)
2431
2478
  *
2432
2479
  * cpdef int frameElementSize(self): # <<<<<<<<<<<<<<
2433
- * return len(self.frameElements)
2434
- *
2480
+ * """
2481
+ * Returns number of frame elements in the current frame
2435
2482
  */
2436
2483
 
2437
2484
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
@@ -2457,7 +2504,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(struct __pyx_obj_8Fr
2457
2504
  if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
2458
2505
  PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
2459
2506
  #endif
2460
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_frameElementSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error)
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)
2461
2508
  __Pyx_GOTREF(__pyx_t_1);
2462
2509
  if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize)) {
2463
2510
  __Pyx_INCREF(__pyx_t_1);
@@ -2473,10 +2520,10 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(struct __pyx_obj_8Fr
2473
2520
  }
2474
2521
  __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
2475
2522
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
2476
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
2523
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error)
2477
2524
  __Pyx_GOTREF(__pyx_t_2);
2478
2525
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2479
- __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 26, __pyx_L1_error)
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)
2480
2527
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2481
2528
  __pyx_r = __pyx_t_5;
2482
2529
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
@@ -2495,30 +2542,30 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(struct __pyx_obj_8Fr
2495
2542
  #endif
2496
2543
  }
2497
2544
 
2498
- /* "FrameNet/Frame.pyx":27
2499
- *
2500
- * cpdef int frameElementSize(self):
2501
- * return len(self.frameElements) # <<<<<<<<<<<<<<
2545
+ /* "FrameNet/Frame.pyx":62
2546
+ * :return: Number of frame elements in the current frame
2547
+ * """
2548
+ * return len(self.__frame_elements) # <<<<<<<<<<<<<<
2502
2549
  *
2503
2550
  * cpdef str getName(self):
2504
2551
  */
2505
- __pyx_t_1 = __pyx_v_self->frameElements;
2552
+ __pyx_t_1 = __pyx_v_self->__pyx___frame_elements;
2506
2553
  __Pyx_INCREF(__pyx_t_1);
2507
2554
  if (unlikely(__pyx_t_1 == Py_None)) {
2508
2555
  PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
2509
- __PYX_ERR(0, 27, __pyx_L1_error)
2556
+ __PYX_ERR(0, 62, __pyx_L1_error)
2510
2557
  }
2511
- __pyx_t_6 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27, __pyx_L1_error)
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)
2512
2559
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2513
2560
  __pyx_r = __pyx_t_6;
2514
2561
  goto __pyx_L0;
2515
2562
 
2516
- /* "FrameNet/Frame.pyx":26
2517
- * return len(self.lexicalUnits)
2563
+ /* "FrameNet/Frame.pyx":57
2564
+ * return len(self.__lexical_units)
2518
2565
  *
2519
2566
  * cpdef int frameElementSize(self): # <<<<<<<<<<<<<<
2520
- * return len(self.frameElements)
2521
- *
2567
+ * """
2568
+ * Returns number of frame elements in the current frame
2522
2569
  */
2523
2570
 
2524
2571
  /* function exit code */
@@ -2536,6 +2583,7 @@ static int __pyx_f_8FrameNet_5Frame_5Frame_frameElementSize(struct __pyx_obj_8Fr
2536
2583
 
2537
2584
  /* Python wrapper */
2538
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 ";
2539
2587
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
2540
2588
  PyObject *__pyx_r = 0;
2541
2589
  __Pyx_RefNannyDeclarations
@@ -2556,7 +2604,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_14frameElementSize(struct __py
2556
2604
  int __pyx_clineno = 0;
2557
2605
  __Pyx_RefNannySetupContext("frameElementSize", 0);
2558
2606
  __Pyx_XDECREF(__pyx_r);
2559
- __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, 26, __pyx_L1_error)
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)
2560
2608
  __Pyx_GOTREF(__pyx_t_1);
2561
2609
  __pyx_r = __pyx_t_1;
2562
2610
  __pyx_t_1 = 0;
@@ -2573,11 +2621,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_14frameElementSize(struct __py
2573
2621
  return __pyx_r;
2574
2622
  }
2575
2623
 
2576
- /* "FrameNet/Frame.pyx":29
2577
- * return len(self.frameElements)
2624
+ /* "FrameNet/Frame.pyx":64
2625
+ * return len(self.__frame_elements)
2578
2626
  *
2579
2627
  * cpdef str getName(self): # <<<<<<<<<<<<<<
2580
- * return self.name
2628
+ * """
2629
+ * Accessor for the name of the frame
2581
2630
  */
2582
2631
 
2583
2632
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_17getName(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
@@ -2601,7 +2650,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getName(struct __pyx_obj_8Frame
2601
2650
  if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
2602
2651
  PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
2603
2652
  #endif
2604
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error)
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)
2605
2654
  __Pyx_GOTREF(__pyx_t_1);
2606
2655
  if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_8FrameNet_5Frame_5Frame_17getName)) {
2607
2656
  __Pyx_XDECREF(__pyx_r);
@@ -2618,10 +2667,10 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getName(struct __pyx_obj_8Frame
2618
2667
  }
2619
2668
  __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
2620
2669
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
2621
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error)
2670
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error)
2622
2671
  __Pyx_GOTREF(__pyx_t_2);
2623
2672
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2624
- 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, 29, __pyx_L1_error)
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)
2625
2674
  __pyx_r = ((PyObject*)__pyx_t_2);
2626
2675
  __pyx_t_2 = 0;
2627
2676
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
@@ -2640,21 +2689,24 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getName(struct __pyx_obj_8Frame
2640
2689
  #endif
2641
2690
  }
2642
2691
 
2643
- /* "FrameNet/Frame.pyx":30
2692
+ /* "FrameNet/Frame.pyx":69
2693
+ * :return: Name of the frame
2694
+ * """
2695
+ * return self.__name # <<<<<<<<<<<<<<
2644
2696
  *
2645
- * cpdef str getName(self):
2646
- * return self.name # <<<<<<<<<<<<<<
2697
+ * def __repr__(self):
2647
2698
  */
2648
2699
  __Pyx_XDECREF(__pyx_r);
2649
- __Pyx_INCREF(__pyx_v_self->name);
2650
- __pyx_r = __pyx_v_self->name;
2700
+ __Pyx_INCREF(__pyx_v_self->__pyx___name);
2701
+ __pyx_r = __pyx_v_self->__pyx___name;
2651
2702
  goto __pyx_L0;
2652
2703
 
2653
- /* "FrameNet/Frame.pyx":29
2654
- * return len(self.frameElements)
2704
+ /* "FrameNet/Frame.pyx":64
2705
+ * return len(self.__frame_elements)
2655
2706
  *
2656
2707
  * cpdef str getName(self): # <<<<<<<<<<<<<<
2657
- * return self.name
2708
+ * """
2709
+ * Accessor for the name of the frame
2658
2710
  */
2659
2711
 
2660
2712
  /* function exit code */
@@ -2673,6 +2725,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame_5Frame_getName(struct __pyx_obj_8Frame
2673
2725
 
2674
2726
  /* Python wrapper */
2675
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 ";
2676
2729
  static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_17getName(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
2677
2730
  PyObject *__pyx_r = 0;
2678
2731
  __Pyx_RefNannyDeclarations
@@ -2693,7 +2746,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_16getName(struct __pyx_obj_8Fr
2693
2746
  int __pyx_clineno = 0;
2694
2747
  __Pyx_RefNannySetupContext("getName", 0);
2695
2748
  __Pyx_XDECREF(__pyx_r);
2696
- __pyx_t_1 = __pyx_f_8FrameNet_5Frame_5Frame_getName(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error)
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)
2697
2750
  __Pyx_GOTREF(__pyx_t_1);
2698
2751
  __pyx_r = __pyx_t_1;
2699
2752
  __pyx_t_1 = 0;
@@ -2710,6 +2763,103 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_16getName(struct __pyx_obj_8Fr
2710
2763
  return __pyx_r;
2711
2764
  }
2712
2765
 
2766
+ /* "FrameNet/Frame.pyx":71
2767
+ * return self.__name
2768
+ *
2769
+ * def __repr__(self): # <<<<<<<<<<<<<<
2770
+ * return f"{self.__name} {self.__lexical_units} {self.__frame_elements}"
2771
+ */
2772
+
2773
+ /* Python wrapper */
2774
+ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_19__repr__(PyObject *__pyx_v_self); /*proto*/
2775
+ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_19__repr__(PyObject *__pyx_v_self) {
2776
+ PyObject *__pyx_r = 0;
2777
+ __Pyx_RefNannyDeclarations
2778
+ __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
2779
+ __pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_18__repr__(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self));
2780
+
2781
+ /* function exit code */
2782
+ __Pyx_RefNannyFinishContext();
2783
+ return __pyx_r;
2784
+ }
2785
+
2786
+ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__repr__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self) {
2787
+ PyObject *__pyx_r = NULL;
2788
+ __Pyx_RefNannyDeclarations
2789
+ PyObject *__pyx_t_1 = NULL;
2790
+ Py_ssize_t __pyx_t_2;
2791
+ Py_UCS4 __pyx_t_3;
2792
+ PyObject *__pyx_t_4 = NULL;
2793
+ int __pyx_lineno = 0;
2794
+ const char *__pyx_filename = NULL;
2795
+ int __pyx_clineno = 0;
2796
+ __Pyx_RefNannySetupContext("__repr__", 0);
2797
+
2798
+ /* "FrameNet/Frame.pyx":72
2799
+ *
2800
+ * def __repr__(self):
2801
+ * return f"{self.__name} {self.__lexical_units} {self.__frame_elements}" # <<<<<<<<<<<<<<
2802
+ */
2803
+ __Pyx_XDECREF(__pyx_r);
2804
+ __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error)
2805
+ __Pyx_GOTREF(__pyx_t_1);
2806
+ __pyx_t_2 = 0;
2807
+ __pyx_t_3 = 127;
2808
+ __pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_v_self->__pyx___name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error)
2809
+ __Pyx_GOTREF(__pyx_t_4);
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;
2811
+ __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
2812
+ __Pyx_GIVEREF(__pyx_t_4);
2813
+ PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4);
2814
+ __pyx_t_4 = 0;
2815
+ __Pyx_INCREF(__pyx_kp_u_);
2816
+ __pyx_t_2 += 1;
2817
+ __Pyx_GIVEREF(__pyx_kp_u_);
2818
+ PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_kp_u_);
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)
2820
+ __Pyx_GOTREF(__pyx_t_4);
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;
2822
+ __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
2823
+ __Pyx_GIVEREF(__pyx_t_4);
2824
+ PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4);
2825
+ __pyx_t_4 = 0;
2826
+ __Pyx_INCREF(__pyx_kp_u_);
2827
+ __pyx_t_2 += 1;
2828
+ __Pyx_GIVEREF(__pyx_kp_u_);
2829
+ PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_kp_u_);
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)
2831
+ __Pyx_GOTREF(__pyx_t_4);
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;
2833
+ __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
2834
+ __Pyx_GIVEREF(__pyx_t_4);
2835
+ PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_t_4);
2836
+ __pyx_t_4 = 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)
2838
+ __Pyx_GOTREF(__pyx_t_4);
2839
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2840
+ __pyx_r = __pyx_t_4;
2841
+ __pyx_t_4 = 0;
2842
+ goto __pyx_L0;
2843
+
2844
+ /* "FrameNet/Frame.pyx":71
2845
+ * return self.__name
2846
+ *
2847
+ * def __repr__(self): # <<<<<<<<<<<<<<
2848
+ * return f"{self.__name} {self.__lexical_units} {self.__frame_elements}"
2849
+ */
2850
+
2851
+ /* function exit code */
2852
+ __pyx_L1_error:;
2853
+ __Pyx_XDECREF(__pyx_t_1);
2854
+ __Pyx_XDECREF(__pyx_t_4);
2855
+ __Pyx_AddTraceback("FrameNet.Frame.Frame.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
2856
+ __pyx_r = NULL;
2857
+ __pyx_L0:;
2858
+ __Pyx_XGIVEREF(__pyx_r);
2859
+ __Pyx_RefNannyFinishContext();
2860
+ return __pyx_r;
2861
+ }
2862
+
2713
2863
  /* "(tree fragment)":1
2714
2864
  * def __reduce_cython__(self): # <<<<<<<<<<<<<<
2715
2865
  * cdef tuple state
@@ -2717,19 +2867,19 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_16getName(struct __pyx_obj_8Fr
2717
2867
  */
2718
2868
 
2719
2869
  /* Python wrapper */
2720
- static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_19__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
2721
- static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_19__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
2870
+ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_21__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
2871
+ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_21__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
2722
2872
  PyObject *__pyx_r = 0;
2723
2873
  __Pyx_RefNannyDeclarations
2724
2874
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
2725
- __pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self));
2875
+ __pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_20__reduce_cython__(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self));
2726
2876
 
2727
2877
  /* function exit code */
2728
2878
  __Pyx_RefNannyFinishContext();
2729
2879
  return __pyx_r;
2730
2880
  }
2731
2881
 
2732
- static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self) {
2882
+ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_20__reduce_cython__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self) {
2733
2883
  PyObject *__pyx_v_state = 0;
2734
2884
  PyObject *__pyx_v__dict = 0;
2735
2885
  int __pyx_v_use_setstate;
@@ -2749,27 +2899,27 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __p
2749
2899
  /* "(tree fragment)":5
2750
2900
  * cdef object _dict
2751
2901
  * cdef bint use_setstate
2752
- * state = (self.frameElements, self.lexicalUnits, self.name) # <<<<<<<<<<<<<<
2902
+ * state = (self.__frame_elements, self.__lexical_units, self.__name) # <<<<<<<<<<<<<<
2753
2903
  * _dict = getattr(self, '__dict__', None)
2754
2904
  * if _dict is not None:
2755
2905
  */
2756
2906
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
2757
2907
  __Pyx_GOTREF(__pyx_t_1);
2758
- __Pyx_INCREF(__pyx_v_self->frameElements);
2759
- __Pyx_GIVEREF(__pyx_v_self->frameElements);
2760
- PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->frameElements);
2761
- __Pyx_INCREF(__pyx_v_self->lexicalUnits);
2762
- __Pyx_GIVEREF(__pyx_v_self->lexicalUnits);
2763
- PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_self->lexicalUnits);
2764
- __Pyx_INCREF(__pyx_v_self->name);
2765
- __Pyx_GIVEREF(__pyx_v_self->name);
2766
- PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_self->name);
2908
+ __Pyx_INCREF(__pyx_v_self->__pyx___frame_elements);
2909
+ __Pyx_GIVEREF(__pyx_v_self->__pyx___frame_elements);
2910
+ PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->__pyx___frame_elements);
2911
+ __Pyx_INCREF(__pyx_v_self->__pyx___lexical_units);
2912
+ __Pyx_GIVEREF(__pyx_v_self->__pyx___lexical_units);
2913
+ PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_self->__pyx___lexical_units);
2914
+ __Pyx_INCREF(__pyx_v_self->__pyx___name);
2915
+ __Pyx_GIVEREF(__pyx_v_self->__pyx___name);
2916
+ PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_self->__pyx___name);
2767
2917
  __pyx_v_state = ((PyObject*)__pyx_t_1);
2768
2918
  __pyx_t_1 = 0;
2769
2919
 
2770
2920
  /* "(tree fragment)":6
2771
2921
  * cdef bint use_setstate
2772
- * state = (self.frameElements, self.lexicalUnits, self.name)
2922
+ * state = (self.__frame_elements, self.__lexical_units, self.__name)
2773
2923
  * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<<
2774
2924
  * if _dict is not None:
2775
2925
  * state += (_dict,)
@@ -2780,7 +2930,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __p
2780
2930
  __pyx_t_1 = 0;
2781
2931
 
2782
2932
  /* "(tree fragment)":7
2783
- * state = (self.frameElements, self.lexicalUnits, self.name)
2933
+ * state = (self.__frame_elements, self.__lexical_units, self.__name)
2784
2934
  * _dict = getattr(self, '__dict__', None)
2785
2935
  * if _dict is not None: # <<<<<<<<<<<<<<
2786
2936
  * state += (_dict,)
@@ -2813,12 +2963,12 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __p
2813
2963
  * state += (_dict,)
2814
2964
  * use_setstate = True # <<<<<<<<<<<<<<
2815
2965
  * else:
2816
- * use_setstate = self.frameElements is not None or self.lexicalUnits is not None or self.name is not None
2966
+ * use_setstate = self.__frame_elements is not None or self.__lexical_units is not None or self.__name is not None
2817
2967
  */
2818
2968
  __pyx_v_use_setstate = 1;
2819
2969
 
2820
2970
  /* "(tree fragment)":7
2821
- * state = (self.frameElements, self.lexicalUnits, self.name)
2971
+ * state = (self.__frame_elements, self.__lexical_units, self.__name)
2822
2972
  * _dict = getattr(self, '__dict__', None)
2823
2973
  * if _dict is not None: # <<<<<<<<<<<<<<
2824
2974
  * state += (_dict,)
@@ -2830,26 +2980,26 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __p
2830
2980
  /* "(tree fragment)":11
2831
2981
  * use_setstate = True
2832
2982
  * else:
2833
- * use_setstate = self.frameElements is not None or self.lexicalUnits is not None or self.name is not None # <<<<<<<<<<<<<<
2983
+ * use_setstate = self.__frame_elements is not None or self.__lexical_units is not None or self.__name is not None # <<<<<<<<<<<<<<
2834
2984
  * if use_setstate:
2835
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, None), state
2985
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, None), state
2836
2986
  */
2837
2987
  /*else*/ {
2838
- __pyx_t_2 = (__pyx_v_self->frameElements != ((PyObject*)Py_None));
2988
+ __pyx_t_2 = (__pyx_v_self->__pyx___frame_elements != ((PyObject*)Py_None));
2839
2989
  __pyx_t_5 = (__pyx_t_2 != 0);
2840
2990
  if (!__pyx_t_5) {
2841
2991
  } else {
2842
2992
  __pyx_t_3 = __pyx_t_5;
2843
2993
  goto __pyx_L4_bool_binop_done;
2844
2994
  }
2845
- __pyx_t_5 = (__pyx_v_self->lexicalUnits != ((PyObject*)Py_None));
2995
+ __pyx_t_5 = (__pyx_v_self->__pyx___lexical_units != ((PyObject*)Py_None));
2846
2996
  __pyx_t_2 = (__pyx_t_5 != 0);
2847
2997
  if (!__pyx_t_2) {
2848
2998
  } else {
2849
2999
  __pyx_t_3 = __pyx_t_2;
2850
3000
  goto __pyx_L4_bool_binop_done;
2851
3001
  }
2852
- __pyx_t_2 = (__pyx_v_self->name != ((PyObject*)Py_None));
3002
+ __pyx_t_2 = (__pyx_v_self->__pyx___name != ((PyObject*)Py_None));
2853
3003
  __pyx_t_5 = (__pyx_t_2 != 0);
2854
3004
  __pyx_t_3 = __pyx_t_5;
2855
3005
  __pyx_L4_bool_binop_done:;
@@ -2859,20 +3009,20 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __p
2859
3009
 
2860
3010
  /* "(tree fragment)":12
2861
3011
  * else:
2862
- * use_setstate = self.frameElements is not None or self.lexicalUnits is not None or self.name is not None
3012
+ * use_setstate = self.__frame_elements is not None or self.__lexical_units is not None or self.__name is not None
2863
3013
  * if use_setstate: # <<<<<<<<<<<<<<
2864
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, None), state
3014
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, None), state
2865
3015
  * else:
2866
3016
  */
2867
3017
  __pyx_t_3 = (__pyx_v_use_setstate != 0);
2868
3018
  if (__pyx_t_3) {
2869
3019
 
2870
3020
  /* "(tree fragment)":13
2871
- * use_setstate = self.frameElements is not None or self.lexicalUnits is not None or self.name is not None
3021
+ * use_setstate = self.__frame_elements is not None or self.__lexical_units is not None or self.__name is not None
2872
3022
  * if use_setstate:
2873
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, None), state # <<<<<<<<<<<<<<
3023
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, None), state # <<<<<<<<<<<<<<
2874
3024
  * else:
2875
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, state)
3025
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, state)
2876
3026
  */
2877
3027
  __Pyx_XDECREF(__pyx_r);
2878
3028
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_Frame); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
@@ -2882,9 +3032,9 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __p
2882
3032
  __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
2883
3033
  __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
2884
3034
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
2885
- __Pyx_INCREF(__pyx_int_92021469);
2886
- __Pyx_GIVEREF(__pyx_int_92021469);
2887
- PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_92021469);
3035
+ __Pyx_INCREF(__pyx_int_142969583);
3036
+ __Pyx_GIVEREF(__pyx_int_142969583);
3037
+ PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_142969583);
2888
3038
  __Pyx_INCREF(Py_None);
2889
3039
  __Pyx_GIVEREF(Py_None);
2890
3040
  PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None);
@@ -2905,17 +3055,17 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __p
2905
3055
 
2906
3056
  /* "(tree fragment)":12
2907
3057
  * else:
2908
- * use_setstate = self.frameElements is not None or self.lexicalUnits is not None or self.name is not None
3058
+ * use_setstate = self.__frame_elements is not None or self.__lexical_units is not None or self.__name is not None
2909
3059
  * if use_setstate: # <<<<<<<<<<<<<<
2910
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, None), state
3060
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, None), state
2911
3061
  * else:
2912
3062
  */
2913
3063
  }
2914
3064
 
2915
3065
  /* "(tree fragment)":15
2916
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, None), state
3066
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, None), state
2917
3067
  * else:
2918
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, state) # <<<<<<<<<<<<<<
3068
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, state) # <<<<<<<<<<<<<<
2919
3069
  * def __setstate_cython__(self, __pyx_state):
2920
3070
  * __pyx_unpickle_Frame__set_state(self, __pyx_state)
2921
3071
  */
@@ -2928,9 +3078,9 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __p
2928
3078
  __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
2929
3079
  __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
2930
3080
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
2931
- __Pyx_INCREF(__pyx_int_92021469);
2932
- __Pyx_GIVEREF(__pyx_int_92021469);
2933
- PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_92021469);
3081
+ __Pyx_INCREF(__pyx_int_142969583);
3082
+ __Pyx_GIVEREF(__pyx_int_142969583);
3083
+ PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_142969583);
2934
3084
  __Pyx_INCREF(__pyx_v_state);
2935
3085
  __Pyx_GIVEREF(__pyx_v_state);
2936
3086
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state);
@@ -2970,25 +3120,25 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_18__reduce_cython__(struct __p
2970
3120
 
2971
3121
  /* "(tree fragment)":16
2972
3122
  * else:
2973
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, state)
3123
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, state)
2974
3124
  * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
2975
3125
  * __pyx_unpickle_Frame__set_state(self, __pyx_state)
2976
3126
  */
2977
3127
 
2978
3128
  /* Python wrapper */
2979
- static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_21__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
2980
- static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_21__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
3129
+ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_23__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
3130
+ static PyObject *__pyx_pw_8FrameNet_5Frame_5Frame_23__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
2981
3131
  PyObject *__pyx_r = 0;
2982
3132
  __Pyx_RefNannyDeclarations
2983
3133
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
2984
- __pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_20__setstate_cython__(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
3134
+ __pyx_r = __pyx_pf_8FrameNet_5Frame_5Frame_22__setstate_cython__(((struct __pyx_obj_8FrameNet_5Frame_Frame *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
2985
3135
 
2986
3136
  /* function exit code */
2987
3137
  __Pyx_RefNannyFinishContext();
2988
3138
  return __pyx_r;
2989
3139
  }
2990
3140
 
2991
- static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_20__setstate_cython__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
3141
+ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_22__setstate_cython__(struct __pyx_obj_8FrameNet_5Frame_Frame *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
2992
3142
  PyObject *__pyx_r = NULL;
2993
3143
  __Pyx_RefNannyDeclarations
2994
3144
  PyObject *__pyx_t_1 = NULL;
@@ -2998,7 +3148,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_20__setstate_cython__(struct _
2998
3148
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);
2999
3149
 
3000
3150
  /* "(tree fragment)":17
3001
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, state)
3151
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, state)
3002
3152
  * def __setstate_cython__(self, __pyx_state):
3003
3153
  * __pyx_unpickle_Frame__set_state(self, __pyx_state) # <<<<<<<<<<<<<<
3004
3154
  */
@@ -3009,7 +3159,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame_5Frame_20__setstate_cython__(struct _
3009
3159
 
3010
3160
  /* "(tree fragment)":16
3011
3161
  * else:
3012
- * return __pyx_unpickle_Frame, (type(self), 0x57c22dd, state)
3162
+ * return __pyx_unpickle_Frame, (type(self), 0x8858aef, state)
3013
3163
  * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
3014
3164
  * __pyx_unpickle_Frame__set_state(self, __pyx_state)
3015
3165
  */
@@ -3128,18 +3278,18 @@ static PyObject *__pyx_pf_8FrameNet_5Frame___pyx_unpickle_Frame(CYTHON_UNUSED Py
3128
3278
  /* "(tree fragment)":4
3129
3279
  * cdef object __pyx_PickleError
3130
3280
  * cdef object __pyx_result
3131
- * if __pyx_checksum != 0x57c22dd: # <<<<<<<<<<<<<<
3281
+ * if __pyx_checksum != 0x8858aef: # <<<<<<<<<<<<<<
3132
3282
  * from pickle import PickleError as __pyx_PickleError
3133
- * raise __pyx_PickleError("Incompatible checksums (%s vs 0x57c22dd = (frameElements, lexicalUnits, name))" % __pyx_checksum)
3283
+ * raise __pyx_PickleError("Incompatible checksums (%s vs 0x8858aef = (__frame_elements, __lexical_units, __name))" % __pyx_checksum)
3134
3284
  */
3135
- __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x57c22dd) != 0);
3285
+ __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x8858aef) != 0);
3136
3286
  if (__pyx_t_1) {
3137
3287
 
3138
3288
  /* "(tree fragment)":5
3139
3289
  * cdef object __pyx_result
3140
- * if __pyx_checksum != 0x57c22dd:
3290
+ * if __pyx_checksum != 0x8858aef:
3141
3291
  * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<<
3142
- * raise __pyx_PickleError("Incompatible checksums (%s vs 0x57c22dd = (frameElements, lexicalUnits, name))" % __pyx_checksum)
3292
+ * raise __pyx_PickleError("Incompatible checksums (%s vs 0x8858aef = (__frame_elements, __lexical_units, __name))" % __pyx_checksum)
3143
3293
  * __pyx_result = Frame.__new__(__pyx_type)
3144
3294
  */
3145
3295
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
@@ -3158,15 +3308,15 @@ static PyObject *__pyx_pf_8FrameNet_5Frame___pyx_unpickle_Frame(CYTHON_UNUSED Py
3158
3308
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3159
3309
 
3160
3310
  /* "(tree fragment)":6
3161
- * if __pyx_checksum != 0x57c22dd:
3311
+ * if __pyx_checksum != 0x8858aef:
3162
3312
  * from pickle import PickleError as __pyx_PickleError
3163
- * raise __pyx_PickleError("Incompatible checksums (%s vs 0x57c22dd = (frameElements, lexicalUnits, name))" % __pyx_checksum) # <<<<<<<<<<<<<<
3313
+ * raise __pyx_PickleError("Incompatible checksums (%s vs 0x8858aef = (__frame_elements, __lexical_units, __name))" % __pyx_checksum) # <<<<<<<<<<<<<<
3164
3314
  * __pyx_result = Frame.__new__(__pyx_type)
3165
3315
  * if __pyx_state is not None:
3166
3316
  */
3167
3317
  __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
3168
3318
  __Pyx_GOTREF(__pyx_t_2);
3169
- __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x57, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
3319
+ __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x88, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
3170
3320
  __Pyx_GOTREF(__pyx_t_4);
3171
3321
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3172
3322
  __Pyx_INCREF(__pyx_v___pyx_PickleError);
@@ -3193,15 +3343,15 @@ static PyObject *__pyx_pf_8FrameNet_5Frame___pyx_unpickle_Frame(CYTHON_UNUSED Py
3193
3343
  /* "(tree fragment)":4
3194
3344
  * cdef object __pyx_PickleError
3195
3345
  * cdef object __pyx_result
3196
- * if __pyx_checksum != 0x57c22dd: # <<<<<<<<<<<<<<
3346
+ * if __pyx_checksum != 0x8858aef: # <<<<<<<<<<<<<<
3197
3347
  * from pickle import PickleError as __pyx_PickleError
3198
- * raise __pyx_PickleError("Incompatible checksums (%s vs 0x57c22dd = (frameElements, lexicalUnits, name))" % __pyx_checksum)
3348
+ * raise __pyx_PickleError("Incompatible checksums (%s vs 0x8858aef = (__frame_elements, __lexical_units, __name))" % __pyx_checksum)
3199
3349
  */
3200
3350
  }
3201
3351
 
3202
3352
  /* "(tree fragment)":7
3203
3353
  * from pickle import PickleError as __pyx_PickleError
3204
- * raise __pyx_PickleError("Incompatible checksums (%s vs 0x57c22dd = (frameElements, lexicalUnits, name))" % __pyx_checksum)
3354
+ * raise __pyx_PickleError("Incompatible checksums (%s vs 0x8858aef = (__frame_elements, __lexical_units, __name))" % __pyx_checksum)
3205
3355
  * __pyx_result = Frame.__new__(__pyx_type) # <<<<<<<<<<<<<<
3206
3356
  * if __pyx_state is not None:
3207
3357
  * __pyx_unpickle_Frame__set_state(<Frame> __pyx_result, __pyx_state)
@@ -3227,7 +3377,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame___pyx_unpickle_Frame(CYTHON_UNUSED Py
3227
3377
  __pyx_t_3 = 0;
3228
3378
 
3229
3379
  /* "(tree fragment)":8
3230
- * raise __pyx_PickleError("Incompatible checksums (%s vs 0x57c22dd = (frameElements, lexicalUnits, name))" % __pyx_checksum)
3380
+ * raise __pyx_PickleError("Incompatible checksums (%s vs 0x8858aef = (__frame_elements, __lexical_units, __name))" % __pyx_checksum)
3231
3381
  * __pyx_result = Frame.__new__(__pyx_type)
3232
3382
  * if __pyx_state is not None: # <<<<<<<<<<<<<<
3233
3383
  * __pyx_unpickle_Frame__set_state(<Frame> __pyx_result, __pyx_state)
@@ -3250,7 +3400,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame___pyx_unpickle_Frame(CYTHON_UNUSED Py
3250
3400
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3251
3401
 
3252
3402
  /* "(tree fragment)":8
3253
- * raise __pyx_PickleError("Incompatible checksums (%s vs 0x57c22dd = (frameElements, lexicalUnits, name))" % __pyx_checksum)
3403
+ * raise __pyx_PickleError("Incompatible checksums (%s vs 0x8858aef = (__frame_elements, __lexical_units, __name))" % __pyx_checksum)
3254
3404
  * __pyx_result = Frame.__new__(__pyx_type)
3255
3405
  * if __pyx_state is not None: # <<<<<<<<<<<<<<
3256
3406
  * __pyx_unpickle_Frame__set_state(<Frame> __pyx_result, __pyx_state)
@@ -3263,7 +3413,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame___pyx_unpickle_Frame(CYTHON_UNUSED Py
3263
3413
  * __pyx_unpickle_Frame__set_state(<Frame> __pyx_result, __pyx_state)
3264
3414
  * return __pyx_result # <<<<<<<<<<<<<<
3265
3415
  * cdef __pyx_unpickle_Frame__set_state(Frame __pyx_result, tuple __pyx_state):
3266
- * __pyx_result.frameElements = __pyx_state[0]; __pyx_result.lexicalUnits = __pyx_state[1]; __pyx_result.name = __pyx_state[2]
3416
+ * __pyx_result.__frame_elements = __pyx_state[0]; __pyx_result.__lexical_units = __pyx_state[1]; __pyx_result.__name = __pyx_state[2]
3267
3417
  */
3268
3418
  __Pyx_XDECREF(__pyx_r);
3269
3419
  __Pyx_INCREF(__pyx_v___pyx_result);
@@ -3296,7 +3446,7 @@ static PyObject *__pyx_pf_8FrameNet_5Frame___pyx_unpickle_Frame(CYTHON_UNUSED Py
3296
3446
  * __pyx_unpickle_Frame__set_state(<Frame> __pyx_result, __pyx_state)
3297
3447
  * return __pyx_result
3298
3448
  * cdef __pyx_unpickle_Frame__set_state(Frame __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<<
3299
- * __pyx_result.frameElements = __pyx_state[0]; __pyx_result.lexicalUnits = __pyx_state[1]; __pyx_result.name = __pyx_state[2]
3449
+ * __pyx_result.__frame_elements = __pyx_state[0]; __pyx_result.__lexical_units = __pyx_state[1]; __pyx_result.__name = __pyx_state[2]
3300
3450
  * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
3301
3451
  */
3302
3452
 
@@ -3319,7 +3469,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame___pyx_unpickle_Frame__set_state(struct
3319
3469
  /* "(tree fragment)":12
3320
3470
  * return __pyx_result
3321
3471
  * cdef __pyx_unpickle_Frame__set_state(Frame __pyx_result, tuple __pyx_state):
3322
- * __pyx_result.frameElements = __pyx_state[0]; __pyx_result.lexicalUnits = __pyx_state[1]; __pyx_result.name = __pyx_state[2] # <<<<<<<<<<<<<<
3472
+ * __pyx_result.__frame_elements = __pyx_state[0]; __pyx_result.__lexical_units = __pyx_state[1]; __pyx_result.__name = __pyx_state[2] # <<<<<<<<<<<<<<
3323
3473
  * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
3324
3474
  * __pyx_result.__dict__.update(__pyx_state[3])
3325
3475
  */
@@ -3331,9 +3481,9 @@ static PyObject *__pyx_f_8FrameNet_5Frame___pyx_unpickle_Frame__set_state(struct
3331
3481
  __Pyx_GOTREF(__pyx_t_1);
3332
3482
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
3333
3483
  __Pyx_GIVEREF(__pyx_t_1);
3334
- __Pyx_GOTREF(__pyx_v___pyx_result->frameElements);
3335
- __Pyx_DECREF(__pyx_v___pyx_result->frameElements);
3336
- __pyx_v___pyx_result->frameElements = ((PyObject*)__pyx_t_1);
3484
+ __Pyx_GOTREF(__pyx_v___pyx_result->__pyx___frame_elements);
3485
+ __Pyx_DECREF(__pyx_v___pyx_result->__pyx___frame_elements);
3486
+ __pyx_v___pyx_result->__pyx___frame_elements = ((PyObject*)__pyx_t_1);
3337
3487
  __pyx_t_1 = 0;
3338
3488
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
3339
3489
  PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
@@ -3343,9 +3493,9 @@ static PyObject *__pyx_f_8FrameNet_5Frame___pyx_unpickle_Frame__set_state(struct
3343
3493
  __Pyx_GOTREF(__pyx_t_1);
3344
3494
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
3345
3495
  __Pyx_GIVEREF(__pyx_t_1);
3346
- __Pyx_GOTREF(__pyx_v___pyx_result->lexicalUnits);
3347
- __Pyx_DECREF(__pyx_v___pyx_result->lexicalUnits);
3348
- __pyx_v___pyx_result->lexicalUnits = ((PyObject*)__pyx_t_1);
3496
+ __Pyx_GOTREF(__pyx_v___pyx_result->__pyx___lexical_units);
3497
+ __Pyx_DECREF(__pyx_v___pyx_result->__pyx___lexical_units);
3498
+ __pyx_v___pyx_result->__pyx___lexical_units = ((PyObject*)__pyx_t_1);
3349
3499
  __pyx_t_1 = 0;
3350
3500
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
3351
3501
  PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
@@ -3355,14 +3505,14 @@ static PyObject *__pyx_f_8FrameNet_5Frame___pyx_unpickle_Frame__set_state(struct
3355
3505
  __Pyx_GOTREF(__pyx_t_1);
3356
3506
  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(1, 12, __pyx_L1_error)
3357
3507
  __Pyx_GIVEREF(__pyx_t_1);
3358
- __Pyx_GOTREF(__pyx_v___pyx_result->name);
3359
- __Pyx_DECREF(__pyx_v___pyx_result->name);
3360
- __pyx_v___pyx_result->name = ((PyObject*)__pyx_t_1);
3508
+ __Pyx_GOTREF(__pyx_v___pyx_result->__pyx___name);
3509
+ __Pyx_DECREF(__pyx_v___pyx_result->__pyx___name);
3510
+ __pyx_v___pyx_result->__pyx___name = ((PyObject*)__pyx_t_1);
3361
3511
  __pyx_t_1 = 0;
3362
3512
 
3363
3513
  /* "(tree fragment)":13
3364
3514
  * cdef __pyx_unpickle_Frame__set_state(Frame __pyx_result, tuple __pyx_state):
3365
- * __pyx_result.frameElements = __pyx_state[0]; __pyx_result.lexicalUnits = __pyx_state[1]; __pyx_result.name = __pyx_state[2]
3515
+ * __pyx_result.__frame_elements = __pyx_state[0]; __pyx_result.__lexical_units = __pyx_state[1]; __pyx_result.__name = __pyx_state[2]
3366
3516
  * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<<
3367
3517
  * __pyx_result.__dict__.update(__pyx_state[3])
3368
3518
  */
@@ -3384,7 +3534,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame___pyx_unpickle_Frame__set_state(struct
3384
3534
  if (__pyx_t_2) {
3385
3535
 
3386
3536
  /* "(tree fragment)":14
3387
- * __pyx_result.frameElements = __pyx_state[0]; __pyx_result.lexicalUnits = __pyx_state[1]; __pyx_result.name = __pyx_state[2]
3537
+ * __pyx_result.__frame_elements = __pyx_state[0]; __pyx_result.__lexical_units = __pyx_state[1]; __pyx_result.__name = __pyx_state[2]
3388
3538
  * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
3389
3539
  * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<<
3390
3540
  */
@@ -3419,7 +3569,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame___pyx_unpickle_Frame__set_state(struct
3419
3569
 
3420
3570
  /* "(tree fragment)":13
3421
3571
  * cdef __pyx_unpickle_Frame__set_state(Frame __pyx_result, tuple __pyx_state):
3422
- * __pyx_result.frameElements = __pyx_state[0]; __pyx_result.lexicalUnits = __pyx_state[1]; __pyx_result.name = __pyx_state[2]
3572
+ * __pyx_result.__frame_elements = __pyx_state[0]; __pyx_result.__lexical_units = __pyx_state[1]; __pyx_result.__name = __pyx_state[2]
3423
3573
  * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<<
3424
3574
  * __pyx_result.__dict__.update(__pyx_state[3])
3425
3575
  */
@@ -3429,7 +3579,7 @@ static PyObject *__pyx_f_8FrameNet_5Frame___pyx_unpickle_Frame__set_state(struct
3429
3579
  * __pyx_unpickle_Frame__set_state(<Frame> __pyx_result, __pyx_state)
3430
3580
  * return __pyx_result
3431
3581
  * cdef __pyx_unpickle_Frame__set_state(Frame __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<<
3432
- * __pyx_result.frameElements = __pyx_state[0]; __pyx_result.lexicalUnits = __pyx_state[1]; __pyx_result.name = __pyx_state[2]
3582
+ * __pyx_result.__frame_elements = __pyx_state[0]; __pyx_result.__lexical_units = __pyx_state[1]; __pyx_result.__name = __pyx_state[2]
3433
3583
  * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
3434
3584
  */
3435
3585
 
@@ -3461,9 +3611,9 @@ static PyObject *__pyx_tp_new_8FrameNet_5Frame_Frame(PyTypeObject *t, CYTHON_UNU
3461
3611
  if (unlikely(!o)) return 0;
3462
3612
  p = ((struct __pyx_obj_8FrameNet_5Frame_Frame *)o);
3463
3613
  p->__pyx_vtab = __pyx_vtabptr_8FrameNet_5Frame_Frame;
3464
- p->name = ((PyObject*)Py_None); Py_INCREF(Py_None);
3465
- p->lexicalUnits = ((PyObject*)Py_None); Py_INCREF(Py_None);
3466
- p->frameElements = ((PyObject*)Py_None); Py_INCREF(Py_None);
3614
+ p->__pyx___name = ((PyObject*)Py_None); Py_INCREF(Py_None);
3615
+ p->__pyx___lexical_units = ((PyObject*)Py_None); Py_INCREF(Py_None);
3616
+ p->__pyx___frame_elements = ((PyObject*)Py_None); Py_INCREF(Py_None);
3467
3617
  return o;
3468
3618
  }
3469
3619
 
@@ -3475,20 +3625,20 @@ static void __pyx_tp_dealloc_8FrameNet_5Frame_Frame(PyObject *o) {
3475
3625
  }
3476
3626
  #endif
3477
3627
  PyObject_GC_UnTrack(o);
3478
- Py_CLEAR(p->name);
3479
- Py_CLEAR(p->lexicalUnits);
3480
- Py_CLEAR(p->frameElements);
3628
+ Py_CLEAR(p->__pyx___name);
3629
+ Py_CLEAR(p->__pyx___lexical_units);
3630
+ Py_CLEAR(p->__pyx___frame_elements);
3481
3631
  (*Py_TYPE(o)->tp_free)(o);
3482
3632
  }
3483
3633
 
3484
3634
  static int __pyx_tp_traverse_8FrameNet_5Frame_Frame(PyObject *o, visitproc v, void *a) {
3485
3635
  int e;
3486
3636
  struct __pyx_obj_8FrameNet_5Frame_Frame *p = (struct __pyx_obj_8FrameNet_5Frame_Frame *)o;
3487
- if (p->lexicalUnits) {
3488
- e = (*v)(p->lexicalUnits, a); if (e) return e;
3637
+ if (p->__pyx___lexical_units) {
3638
+ e = (*v)(p->__pyx___lexical_units, a); if (e) return e;
3489
3639
  }
3490
- if (p->frameElements) {
3491
- e = (*v)(p->frameElements, a); if (e) return e;
3640
+ if (p->__pyx___frame_elements) {
3641
+ e = (*v)(p->__pyx___frame_elements, a); if (e) return e;
3492
3642
  }
3493
3643
  return 0;
3494
3644
  }
@@ -3496,26 +3646,26 @@ static int __pyx_tp_traverse_8FrameNet_5Frame_Frame(PyObject *o, visitproc v, vo
3496
3646
  static int __pyx_tp_clear_8FrameNet_5Frame_Frame(PyObject *o) {
3497
3647
  PyObject* tmp;
3498
3648
  struct __pyx_obj_8FrameNet_5Frame_Frame *p = (struct __pyx_obj_8FrameNet_5Frame_Frame *)o;
3499
- tmp = ((PyObject*)p->lexicalUnits);
3500
- p->lexicalUnits = ((PyObject*)Py_None); Py_INCREF(Py_None);
3649
+ tmp = ((PyObject*)p->__pyx___lexical_units);
3650
+ p->__pyx___lexical_units = ((PyObject*)Py_None); Py_INCREF(Py_None);
3501
3651
  Py_XDECREF(tmp);
3502
- tmp = ((PyObject*)p->frameElements);
3503
- p->frameElements = ((PyObject*)Py_None); Py_INCREF(Py_None);
3652
+ tmp = ((PyObject*)p->__pyx___frame_elements);
3653
+ p->__pyx___frame_elements = ((PyObject*)Py_None); Py_INCREF(Py_None);
3504
3654
  Py_XDECREF(tmp);
3505
3655
  return 0;
3506
3656
  }
3507
3657
 
3508
3658
  static PyMethodDef __pyx_methods_8FrameNet_5Frame_Frame[] = {
3509
- {"addLexicalUnit", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_3addLexicalUnit, METH_O, 0},
3510
- {"addFrameElement", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_5addFrameElement, METH_O, 0},
3511
- {"lexicalUnitExists", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_7lexicalUnitExists, METH_O, 0},
3512
- {"getLexicalUnit", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_9getLexicalUnit, METH_O, 0},
3513
- {"getFrameElement", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_11getFrameElement, METH_O, 0},
3514
- {"lexicalUnitSize", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_13lexicalUnitSize, METH_NOARGS, 0},
3515
- {"frameElementSize", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_15frameElementSize, METH_NOARGS, 0},
3516
- {"getName", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_17getName, METH_NOARGS, 0},
3517
- {"__reduce_cython__", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_19__reduce_cython__, METH_NOARGS, 0},
3518
- {"__setstate_cython__", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_21__setstate_cython__, METH_O, 0},
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},
3667
+ {"__reduce_cython__", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_21__reduce_cython__, METH_NOARGS, 0},
3668
+ {"__setstate_cython__", (PyCFunction)__pyx_pw_8FrameNet_5Frame_5Frame_23__setstate_cython__, METH_O, 0},
3519
3669
  {0, 0, 0, 0}
3520
3670
  };
3521
3671
 
@@ -3539,7 +3689,7 @@ static PyTypeObject __pyx_type_8FrameNet_5Frame_Frame = {
3539
3689
  #if PY_MAJOR_VERSION >= 3
3540
3690
  0, /*tp_as_async*/
3541
3691
  #endif
3542
- 0, /*tp_repr*/
3692
+ __pyx_pw_8FrameNet_5Frame_5Frame_19__repr__, /*tp_repr*/
3543
3693
  0, /*tp_as_number*/
3544
3694
  0, /*tp_as_sequence*/
3545
3695
  0, /*tp_as_mapping*/
@@ -3634,9 +3784,11 @@ static struct PyModuleDef __pyx_moduledef = {
3634
3784
  #endif
3635
3785
 
3636
3786
  static __Pyx_StringTabEntry __pyx_string_tab[] = {
3787
+ {&__pyx_kp_u_, __pyx_k_, sizeof(__pyx_k_), 0, 1, 0, 0},
3637
3788
  {&__pyx_n_s_Frame, __pyx_k_Frame, sizeof(__pyx_k_Frame), 0, 0, 1, 1},
3638
3789
  {&__pyx_n_s_FrameNet_Frame, __pyx_k_FrameNet_Frame, sizeof(__pyx_k_FrameNet_Frame), 0, 0, 1, 1},
3639
- {&__pyx_kp_s_Incompatible_checksums_s_vs_0x57, __pyx_k_Incompatible_checksums_s_vs_0x57, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x57), 0, 0, 1, 0},
3790
+ {&__pyx_kp_s_Incompatible_checksums_s_vs_0x88, __pyx_k_Incompatible_checksums_s_vs_0x88, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x88), 0, 0, 1, 0},
3791
+ {&__pyx_kp_u_None, __pyx_k_None, sizeof(__pyx_k_None), 0, 1, 0, 0},
3640
3792
  {&__pyx_n_s_PickleError, __pyx_k_PickleError, sizeof(__pyx_k_PickleError), 0, 0, 1, 1},
3641
3793
  {&__pyx_n_s_addFrameElement, __pyx_k_addFrameElement, sizeof(__pyx_k_addFrameElement), 0, 0, 1, 1},
3642
3794
  {&__pyx_n_s_addLexicalUnit, __pyx_k_addLexicalUnit, sizeof(__pyx_k_addLexicalUnit), 0, 0, 1, 1},
@@ -3685,10 +3837,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
3685
3837
  * cdef object __pyx_PickleError
3686
3838
  * cdef object __pyx_result
3687
3839
  */
3688
- __pyx_tuple_ = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 1, __pyx_L1_error)
3689
- __Pyx_GOTREF(__pyx_tuple_);
3690
- __Pyx_GIVEREF(__pyx_tuple_);
3691
- __pyx_codeobj__2 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple_, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Frame, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2)) __PYX_ERR(1, 1, __pyx_L1_error)
3840
+ __pyx_tuple__2 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 1, __pyx_L1_error)
3841
+ __Pyx_GOTREF(__pyx_tuple__2);
3842
+ __Pyx_GIVEREF(__pyx_tuple__2);
3843
+ __pyx_codeobj__3 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Frame, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__3)) __PYX_ERR(1, 1, __pyx_L1_error)
3692
3844
  __Pyx_RefNannyFinishContext();
3693
3845
  return 0;
3694
3846
  __pyx_L1_error:;
@@ -3698,7 +3850,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
3698
3850
 
3699
3851
  static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
3700
3852
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
3701
- __pyx_int_92021469 = PyInt_FromLong(92021469L); if (unlikely(!__pyx_int_92021469)) __PYX_ERR(0, 1, __pyx_L1_error)
3853
+ __pyx_int_142969583 = PyInt_FromLong(142969583L); if (unlikely(!__pyx_int_142969583)) __PYX_ERR(0, 1, __pyx_L1_error)
3702
3854
  return 0;
3703
3855
  __pyx_L1_error:;
3704
3856
  return -1;
@@ -3759,6 +3911,16 @@ static int __Pyx_modinit_type_init_code(void) {
3759
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)) {
3760
3912
  __pyx_type_8FrameNet_5Frame_Frame.tp_getattro = __Pyx_PyObject_GenericGetAttr;
3761
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
3762
3924
  if (__Pyx_SetVtable(__pyx_type_8FrameNet_5Frame_Frame.tp_dict, __pyx_vtabptr_8FrameNet_5Frame_Frame) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
3763
3925
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Frame, (PyObject *)&__pyx_type_8FrameNet_5Frame_Frame) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
3764
3926
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_8FrameNet_5Frame_Frame) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
@@ -4687,6 +4849,75 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
4687
4849
  }
4688
4850
  #endif
4689
4851
 
4852
+ /* PyUnicode_Unicode */
4853
+ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj) {
4854
+ if (unlikely(obj == Py_None))
4855
+ obj = __pyx_kp_u_None;
4856
+ return __Pyx_NewRef(obj);
4857
+ }
4858
+
4859
+ /* JoinPyUnicode */
4860
+ static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
4861
+ CYTHON_UNUSED Py_UCS4 max_char) {
4862
+ #if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4863
+ PyObject *result_uval;
4864
+ int result_ukind;
4865
+ Py_ssize_t i, char_pos;
4866
+ void *result_udata;
4867
+ #if CYTHON_PEP393_ENABLED
4868
+ result_uval = PyUnicode_New(result_ulength, max_char);
4869
+ if (unlikely(!result_uval)) return NULL;
4870
+ result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND;
4871
+ result_udata = PyUnicode_DATA(result_uval);
4872
+ #else
4873
+ result_uval = PyUnicode_FromUnicode(NULL, result_ulength);
4874
+ if (unlikely(!result_uval)) return NULL;
4875
+ result_ukind = sizeof(Py_UNICODE);
4876
+ result_udata = PyUnicode_AS_UNICODE(result_uval);
4877
+ #endif
4878
+ char_pos = 0;
4879
+ for (i=0; i < value_count; i++) {
4880
+ int ukind;
4881
+ Py_ssize_t ulength;
4882
+ void *udata;
4883
+ PyObject *uval = PyTuple_GET_ITEM(value_tuple, i);
4884
+ if (unlikely(__Pyx_PyUnicode_READY(uval)))
4885
+ goto bad;
4886
+ ulength = __Pyx_PyUnicode_GET_LENGTH(uval);
4887
+ if (unlikely(!ulength))
4888
+ continue;
4889
+ if (unlikely(char_pos + ulength < 0))
4890
+ goto overflow;
4891
+ ukind = __Pyx_PyUnicode_KIND(uval);
4892
+ udata = __Pyx_PyUnicode_DATA(uval);
4893
+ if (!CYTHON_PEP393_ENABLED || ukind == result_ukind) {
4894
+ memcpy((char *)result_udata + char_pos * result_ukind, udata, (size_t) (ulength * result_ukind));
4895
+ } else {
4896
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0 || defined(_PyUnicode_FastCopyCharacters)
4897
+ _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
4898
+ #else
4899
+ Py_ssize_t j;
4900
+ for (j=0; j < ulength; j++) {
4901
+ Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j);
4902
+ __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar);
4903
+ }
4904
+ #endif
4905
+ }
4906
+ char_pos += ulength;
4907
+ }
4908
+ return result_uval;
4909
+ overflow:
4910
+ PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string");
4911
+ bad:
4912
+ Py_DECREF(result_uval);
4913
+ return NULL;
4914
+ #else
4915
+ result_ulength++;
4916
+ value_count++;
4917
+ return PyUnicode_Join(__pyx_empty_unicode, value_tuple);
4918
+ #endif
4919
+ }
4920
+
4690
4921
  /* PyErrExceptionMatches */
4691
4922
  #if CYTHON_FAST_THREAD_STATE
4692
4923
  static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {