dpalmasan / TRUNAJOD2.0

An easy-to-use library to extract indices from texts.
https://trunajod20.readthedocs.io/en/latest/
MIT License
29 stars 7 forks source link

Add type hints to entity grid #17

Open dpalmasan opened 3 years ago

dpalmasan commented 3 years ago

The entity grid module can be found in the following source:

https://github.com/dpalmasan/TRUNAJOD2.0/blob/master/src/TRUNAJOD/entity_grid.py

For example, the function:

def get_local_coherence(egrid):

Could be defined as:

def get_local_coherence(egrid: EntityGrid) -> Tuple[float, float, float, float, float]:
supersonic1999 commented 3 years ago

45