6 from core.global_information
import GlobalInformation
9 """! "Lexical Resource is a class representing the entire resource and is a container for one or more lexicons. There is only one Lexical Resource instance." (LMF)
12 """! @brief Constructor.
13 @return A LexicalResource instance.
27 """! @brief Destructor.
28 Release GlobalInformation, Lexicon, Speaker instances.
40 """! @brief Get all lexicons maintained by the lexical resource.
41 @return A Python list of lexicons.
46 """! @brief Add a lexicon to the lexical resource.
47 @param lexicon A Lexicon instance to add to the Lexical Resource.
48 @return Lexical Resource instance.
50 self.lexicon.append(lexicon)
54 """! @brief Remove a lexicon from the lexical resource.
55 @param lexicon The Lexicon instance to remove from the Lexical Resource.
56 @return Lexical Resource instance.
58 self.lexicon.remove(lexicon)
62 """Retrieve a lexicon from its identifier.
63 @param id The identifier of the lexicon to retrieve.
64 @result A Lexicon instance, or None if not found.
71 """! @brief Set DTD version.
72 @param dtd_version The DTD version to use.
73 @return LexicalResource instance.
79 """! @brief Get DTD version.
80 @return LexicalResource attribute 'dtdVersion'.
85 """! @brief Set language code.
86 Attribute 'languageCode' is owned by GlobalInformation.
87 @param language_code The language code to use.
88 @return LexicalResource instance.
90 self.global_information.set_languageCode(language_code)
94 """! @brief Get language code.
95 Attribute 'languageCode' is owned by GlobalInformation.
96 @return GlobalInformation attribute 'languageCode'.
98 return self.global_information.get_languageCode()
101 """! @brief Set version.
102 Attribute 'version' is owned by GlobalInformation.
103 @param version The version to set.
104 @return LexicalResource instance.
106 self.global_information.set_version(version)
110 """! @brief Get version.
111 Attribute 'version' is owned by GlobalInformation.
112 @return GlobalInformation attribute 'version'.
114 return self.global_information.get_version()
117 """! @brief Set license.
118 Attribute 'license' is owned by GlobalInformation.
119 @param license The license to set.
120 @return LexicalResource instance.
122 self.global_information.set_license(license)
126 """! @brief Get license.
127 Attribute 'license' is owned by GlobalInformation.
128 @return GlobalInformation attribute 'license'.
130 return self.global_information.get_license()
133 """! @brief Set character encoding.
134 Attribute 'characterEncoding' is owned by GlobalInformation.
135 @param character_encoding The character encoding to use.
136 @return LexicalResource instance.
138 self.global_information.set_characterEncoding(character_encoding)
142 """! @brief Get character encoding.
143 Attribute 'characterEncoding' is owned by GlobalInformation.
144 @return GlobalInformation attribute 'characterEncoding'.
146 return self.global_information.get_characterEncoding()
149 """! @brief Set date coding.
150 Attribute 'dateCoding' is owned by GlobalInformation.
151 @param date_coding The date coding to use.
152 @return LexicalResource instance.
154 self.global_information.set_dateCoding(date_coding)
158 """! @brief Get date coding.
159 Attribute 'dateCoding' is owned by GlobalInformation.
160 @return GlobalInformation attribute 'dateCoding'.
162 return self.global_information.get_dateCoding()
165 """! @brief Set project name.
166 Attribute 'projectName' is owned by GlobalInformation.
167 @param project_name The project's name to set.
168 @return LexicalResource instance.
170 self.global_information.set_projectName(project_name)
174 """! @brief Get project name.
175 Attribute 'projectName' is owned by GlobalInformation.
176 @return GlobalInformation attribute 'projectName'.
178 return self.global_information.get_projectName()
181 """! @brief Set creation date.
182 Attribute 'creationDate' is owned by GlobalInformation.
183 @param date The date to set, in format YYYY-MM-DD.
184 @return LexicalResource instance.
186 self.global_information.set_creationDate(date)
190 """! @brief Get creation date.
191 Attribute 'creationDate' is owned by GlobalInformation.
192 @return GlobalInformation attribute 'creationdDate'.
194 return self.global_information.get_creationDate()
197 """! @brief Set last update.
198 Attribute 'lastUpdate' is owned by GlobalInformation.
199 @param date The date to set, in format YYYY-MM-DD.
200 @return LexicalResource instance.
202 self.global_information.set_lastUpdate(date)
206 """! @brief Get last update.
207 Attribute 'lastUpdate' is owned by GlobalInformation.
208 @return GlobalInformation attribute 'lastUpdate'.
210 return self.global_information.get_lastUpdate()
213 """! @brief Set author.
214 Attribute 'author' is owned by GlobalInformation.
215 @param author The author's name to set.
216 @return LexicalResource instance.
218 self.global_information.set_author(author)
222 """! @brief Get author.
223 Attribute 'author' is owned by GlobalInformation.
224 @return GlobalInformation attribute 'author'.
226 return self.global_information.get_author()
229 """! @brief Set description.
230 Attribute 'description' is owned by GlobalInformation.
231 @param description The description to set.
232 @return LexicalResource instance.
234 self.global_information.set_description(description)
238 """! @brief Get description.
239 Attribute 'description' is owned by GlobalInformation.
240 @return GlobalInformation attribute 'description'.
242 return self.global_information.get_description()
245 """! @brief Get bibliographic citation.
246 Attribute 'bibliographicCitation' is owned by GlobalInformation.
247 @return GlobalInformation attribute 'bibliographicCitation'.
249 return self.global_information.get_bibliographicCitation()
def get_last_update
Get last update.
speaker
Speaker instances are owned by LexicalResource There is zero to many Speaker instances for one unique...
def get_license
Get license.
def set_license
Set license.
def get_character_encoding
Get character encoding.
def get_date_coding
Get date coding.
def get_project_name
Get project name.
def set_author
Set author.
def set_dtdVersion
Set DTD version.
def get_language_code
Get language code.
def get_bibliographic_citation
Get bibliographic citation.
def get_lexicons
Get all lexicons maintained by the lexical resource.
def get_author
Get author.
def set_date_coding
Set date coding.
def get_version
Get version.
"Lexical Resource is a class representing the entire resource and is a container for one or more lexi...
def get_dtdVersion
Get DTD version.
def set_version
Set version.
def set_creation_date
Set creation date.
def get_creation_date
Get creation date.
def add_lexicon
Add a lexicon to the lexical resource.
def set_character_encoding
Set character encoding.
def set_language_code
Set language code.
def set_description
Set description.
lexicon
Lexicon instances are owned by LexicalResource There is one or more Lexicon instances for one unique ...
def get_description
Get description.
def set_project_name
Set project name.
def remove_lexicon
Remove a lexicon from the lexical resource.
def set_last_update
Set last update.
global_information
GlobalInformation instance is owned by LexicalResource There is one GlobalInformation for one Lexical...