langtest.utils.SoundsLikeFunctions.PhoneFunctions#

class PhoneFunctions#

Bases: object

Class containing functions related to phones and phonetic representations.

__init__()#

Methods

__init__()

unstressed_phone(phone)

Removes the stress marker from a given phone if it exists.

static unstressed_phone(phone: str) str#

Removes the stress marker from a given phone if it exists.

Parameters:

phone (str) – The phone from which the stress marker is to be removed.

Returns:

The phone without the stress marker.

Return type:

str