Draft API for morphological analysis class

This commit is contained in:
Matthew Honnibal 2019-03-07 10:45:24 +01:00
parent fc1cc4c529
commit 21008ad2d8

View File

@ -0,0 +1,57 @@
cdef class Morphanalysis:
"""Control access to morphological features for a token."""
def __init__(self, Vocab vocab, features=None):
pass
@classmethod
def from_id(self, Vocab vocab, hash_t key):
pass
def __contains__(self, feature):
pass
def __iter__(self):
pass
def __len__(self):
pass
def __str__(self):
pass
def __repr__(self):
pass
def __hash__(self):
pass
@property
def is_base_form(self):
pass
@property
def pos(self):
pass
@property
def pos_(self):
pass
@property
def id(self):
pass
def get(self, name):
pass
def set(self, name, value):
pass
def add(self, feature):
pass
def remove(self, feature):
pass
def to_json(self):
pass